Skip to content

Commit

Permalink
Merge pull request hyperledger-web3j#1495 from alexdupre/npeFix
Browse files Browse the repository at this point in the history
Fix NPE when `eth_getFilterLogs` returns an error at filter init.
yasseralaa authored Aug 31, 2021
2 parents f2d4d29 + ed025db commit b2136e3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -116,6 +116,10 @@ private void getInitialFilterLogs() {
ethLog.setResult(Collections.emptyList());
}

if (ethLog.hasError()) {
throwException(ethLog.getError());
}

process(ethLog.getLogs());

} catch (IOException e) {

0 comments on commit b2136e3

Please sign in to comment.