Version 1.0.2-SNAPSHOT bump

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

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);