Skip to content

Commit 87f729d

Browse files
author
Mihail Slavchev
committed
add null check
1 parent 15c22ce commit 87f729d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/src/com/tns/Runtime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static boolean isInitialized()
147147
{
148148
Runtime runtime = Runtime.getCurrentRuntime();
149149

150-
return runtime.isInitializedImpl();
150+
return (runtime != null) ? runtime.isInitializedImpl() : false;
151151
}
152152

153153
private boolean isInitializedImpl()

0 commit comments

Comments
 (0)