diff options
author | Sven Gothel <[email protected]> | 2009-10-05 17:54:51 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-05 17:54:51 -0700 |
commit | e8fbf3c0738c39005036c50e74dd20e4956f372f (patch) | |
tree | 4f2fa0c44aaec088b5263c31878c0834e4f55c9d /src/nativewindow/classes | |
parent | 62fb860ffc454fc00ed73f9b6da54bba34a6d64f (diff) |
EGL more query config trials; Avoid NPE if no config is chosen
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/DefaultGraphicsConfiguration.java | 4 |
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() { |