Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #41 from fmagin/plugin_not_activated
Browse files Browse the repository at this point in the history
Avoid NullPointerExceptions if plugin isn't activated yet
  • Loading branch information
Andrew Strelsky authored Jun 20, 2021
2 parents f2f2bf3 + 5900b15 commit c39bb32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ protected boolean doScan(MessageLog log, TaskMonitor monitor) throws CancelledEx
@Override
public Set<Address> scanFundamentals(MessageLog log, TaskMonitor monitor)
throws CancelledException {
this.monitor = monitor;
relocations.addAll(getRelocations(CLASS_TYPESTRINGS));
if (!relocations.isEmpty()) {
relocatable = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static ProgramClassTypeInfoManager getManager(Program program) {
} else {
service = getService(program);
}
return service.getManager(program);
return service != null ? service.getManager(program) : null;
}

/**
Expand Down

0 comments on commit c39bb32

Please sign in to comment.