Don't store code for empty init return

This commit is contained in:
nicksavers 2014-10-08 11:48:11 +02:00
parent 03e6c7ba5a
commit 729e2822ce
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ public class BlockchainImpl implements Blockchain {
if (initResults) {
// Save the code created by init
byte[] bodyCode = null;
if (result.getHReturn() != null) {
if (result.getHReturn() != null && result.getHReturn().array().length > 0) {
bodyCode = result.getHReturn().array();
}