Skip to content

Commit

Permalink
Fix NPE on trying to close null instance
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharywhitley committed Mar 27, 2022
1 parent 0bc3be6 commit bc928e6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ protected ValueOrError _getValue() {
return ValueOrError.General.of(output_value);
}
} finally {
instance.close();
instance = null;
if(instance != null) {
instance.close();
instance = null;
}
}
}

Expand Down

0 comments on commit bc928e6

Please sign in to comment.