Catch and protect against when getHReturn() passes null to avoid NPE
This commit is contained in:
parent
8985f6374a
commit
a7e6bf65d0
|
@ -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