From 9c1c6d49e11574d8afe351a8100872a645ccdd36 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Fri, 18 Jan 2013 16:21:04 +0100 Subject: PlatformPropsImpl: JAVA_RUNTIME_NAME is null using GCJ gij JRE. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xerxes Rånby --- src/java/jogamp/common/os/PlatformPropsImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/java/jogamp/common') diff --git a/src/java/jogamp/common/os/PlatformPropsImpl.java b/src/java/jogamp/common/os/PlatformPropsImpl.java index 111523d..3010a31 100644 --- a/src/java/jogamp/common/os/PlatformPropsImpl.java +++ b/src/java/jogamp/common/os/PlatformPropsImpl.java @@ -90,8 +90,10 @@ public abstract class PlatformPropsImpl { } private static final boolean initIsJavaSE() { - if(JAVA_RUNTIME_NAME.indexOf("Java SE") != -1) { - return true; + if(JAVA_RUNTIME_NAME!=null) { + if(JAVA_RUNTIME_NAME.indexOf("Java SE") != -1) { + return true; + } } // probe for classes we need on a SE environment -- cgit v1.2.3