From e8fbf3c0738c39005036c50e74dd20e4956f372f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 5 Oct 2009 17:54:51 -0700 Subject: EGL more query config trials; Avoid NPE if no config is chosen --- .../javax/media/nativewindow/DefaultGraphicsConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nativewindow/classes/javax') 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() { -- cgit v1.2.3