Merge pull request #114 from metc/master
Fix a `java.lang.NullPointerException`.
This commit is contained in:
commit
a33e83ee38
|
@ -143,10 +143,12 @@ final class LinuxContextImplementation implements ContextImplementation {
|
||||||
|
|
||||||
public void setSwapInterval(int value) {
|
public void setSwapInterval(int value) {
|
||||||
ContextGL current_context = ContextGL.getCurrentContext();
|
ContextGL current_context = ContextGL.getCurrentContext();
|
||||||
PeerInfo peer_info = current_context.getPeerInfo();
|
|
||||||
|
|
||||||
if ( current_context == null )
|
if ( current_context == null )
|
||||||
throw new IllegalStateException("No context is current");
|
throw new IllegalStateException("No context is current");
|
||||||
|
|
||||||
|
PeerInfo peer_info = current_context.getPeerInfo();
|
||||||
|
|
||||||
synchronized ( current_context ) {
|
synchronized ( current_context ) {
|
||||||
LinuxDisplay.lockAWT();
|
LinuxDisplay.lockAWT();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue