Skip to content

Commit

Permalink
Added null pointer check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Hart committed Jul 7, 2018
1 parent d6ec109 commit 20eaccd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ethereumj-core/src/main/java/org/ethereum/vm/VM.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public VM(SystemProperties config) {
this.config = config;
vmTrace = config.vmTrace();
dumpBlock = config.dumpBlock();
vmHook = vmHookFactory.build();

if (vmHookFactory != null) {
vmHook = vmHookFactory.build();
}
}

private long calcMemGas(GasCost gasCosts, long oldMemSize, BigInteger newMemSize, long copySize) {
Expand Down

0 comments on commit 20eaccd

Please sign in to comment.