Version 1.0.2-SNAPSHOT bump

Fixed NPE if you create a Plaintext object without recipient
This commit is contained in:
Christian Basler 2016-02-06 15:47:13 +01:00
parent 58e9644ff1
commit db64b55510
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ subprojects {
sourceCompatibility = 1.7 sourceCompatibility = 1.7
group = 'ch.dissem.jabit' group = 'ch.dissem.jabit'
version = '1.0.1' version = '1.0.2-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

View File

@ -455,7 +455,7 @@ public class Plaintext implements Streamable {
behaviorBitfield behaviorBitfield
)); ));
} }
if (to == null && type != Type.BROADCAST) { if (to == null && type != Type.BROADCAST && destinationRipe != null) {
to = new BitmessageAddress(0, 0, destinationRipe); to = new BitmessageAddress(0, 0, destinationRipe);
} }
return new Plaintext(this); return new Plaintext(this);