Skip to content

Commit 6395553

Browse files
committed
npe in memory leak verifier
1 parent 44274b2 commit 6395553

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/net/sf/jsqlparser/test/MemoryLeakVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private static void assertGarbageCollected(WeakReference<Object> ref, int maxIte
101101
for (int i = 0; i < maxIterations; i++) {
102102
runtime.runFinalization();
103103
runtime.gc();
104-
if (ref.get() == null) {
104+
if (ref == null || ref.get() == null) {
105105
break;
106106
}
107107

0 commit comments

Comments
 (0)