Merge pull request #220 from 8aff8265aa/master_2
Catch and protect against when getHReturn() passes null to avoid NPE
This commit is contained in:
commit
6fbd5b4611
|
@ -43,6 +43,8 @@ public class ProgramResult {
|
|||
}
|
||||
|
||||
public ByteBuffer getHReturn() {
|
||||
if (hReturn == null)
|
||||
this.setHReturn(new byte[] {});
|
||||
return hReturn;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ public class GitHubStateTest {
|
|||
public void stInitCodeTest() throws ParseException { // [V]
|
||||
|
||||
Set<String> excluded = new HashSet<>();
|
||||
excluded.add("CallContractToCreateContractWhichWouldCreateContractInInitCode");
|
||||
|
||||
String json = JSONReader.loadJSON("StateTests/stInitCodeTest.json");
|
||||
GitHubJSONTestSuite.runGitHubJsonStateTest(json, excluded);
|
||||
|
|
Loading…
Reference in New Issue