Skip to content

Commit

Permalink
Fixed NullPointerException for Overlayed refs in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
lab313ru committed Jan 22, 2022
1 parent 57e283b commit 35b8af7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/psx/PsxUpdateAddressSpacesTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ private String findAnotherSpaceSymbolName(final AddressSpace space, long offset)
private void workWithToken(AddressSpace constSpace, ClangToken token, final Address funcAddr, final Address newAddr, boolean store) {
PcodeOp op = token.getPcodeOp();

if (op == null) {
return;
}

int spaceId = newAddr.getAddressSpace().getSpaceID();
int lineNum = token.getLineParent().getLineNumber();

Expand Down

0 comments on commit 35b8af7

Please sign in to comment.