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
group = 'ch.dissem.jabit'
version = '1.0.1'
version = '1.0.2-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

View File

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