aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-05 17:54:51 -0700
committerSven Gothel <[email protected]>2009-10-05 17:54:51 -0700
commite8fbf3c0738c39005036c50e74dd20e4956f372f (patch)
tree4f2fa0c44aaec088b5263c31878c0834e4f55c9d /src/nativewindow
parent62fb860ffc454fc00ed73f9b6da54bba34a6d64f (diff)
EGL more query config trials; Avoid NPE if no config is chosen
Diffstat (limited to 'src/nativewindow')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java b/src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java
index f88632476..47f02c7cc 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java
@@ -57,11 +57,11 @@ public class DefaultGraphicsConfiguration implements Cloneable, AbstractGraphics
}
public Capabilities getChosenCapabilities() {
- return (Capabilities)capabilitiesChosen.clone();
+ return (null!=capabilitiesChosen)?(Capabilities)capabilitiesChosen.clone():null;
}
public Capabilities getRequestedCapabilities() {
- return (Capabilities)capabilitiesRequested.clone();
+ return (null!=capabilitiesRequested)?(Capabilities)capabilitiesRequested.clone():null;
}
public AbstractGraphicsConfiguration getNativeGraphicsConfiguration() {