external_objects_java: fix crash on ScilabJavaEnvironment when used as a local variable
[scilab.git] / scilab / modules / external_objects_java / src / cpp / ScilabJavaEnvironment.hxx
index f522baf..6bcb112 100644 (file)
@@ -128,9 +128,9 @@ public :
 
     static void finish();
 
-    static ScilabJavaEnvironment & getInstance()
+    static ScilabJavaEnvironment* getInstance()
     {
-        return *instance;
+        return instance;
     }
 
     JavaOptionsHelper & getOptionsHelper();