Skip to content

Commit e49284a

Browse files
committed
fix exception when persisting SyncService instance
1 parent c0e45f1 commit e49284a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/src/com/tns/Platform.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@ private static void makeInstanceStrong(Object instance, int objectId)
515515
}
516516
}
517517

518-
if (logger.isEnabled()) logger.write("MakeInstanceStrong (" + key + ", " + instance.getClass().toString() + ")");
518+
if (logger != null && logger.isEnabled())
519+
{
520+
logger.write("MakeInstanceStrong (" + key + ", " + instance.getClass().toString() + ")");
521+
}
519522
}
520523

521524
private static void makeInstanceWeak(int javaObjectID, boolean keepAsWeak)

0 commit comments

Comments
 (0)