Skip to content

Commit

Permalink
gcInstance can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
thurka committed Apr 22, 2024
1 parent d2fd93d commit b5fe678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public GCRoot findRoot(Instance object) {
Instance gcInstance = object;
do {
gcInstance = gcInstance.getNearestGCRootPointer();
} while (!gcInstance.isGCRoot());
} while (gcInstance != null && !gcInstance.isGCRoot());
if (gcInstance != null) {
Collection<GCRoot> roots = delegate.getGCRoots(gcInstance);
if (!roots.isEmpty()) {
Expand Down

0 comments on commit b5fe678

Please sign in to comment.