From db64b555101f6c7088defcbc192fe03fb91cd9b8 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Sat, 6 Feb 2016 15:47:13 +0100 Subject: [PATCH] Version 1.0.2-SNAPSHOT bump Fixed NPE if you create a Plaintext object without recipient --- build.gradle | 2 +- core/src/main/java/ch/dissem/bitmessage/entity/Plaintext.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 09e7d61..917a0d4 100644 --- a/build.gradle +++ b/build.gradle @@ -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") diff --git a/core/src/main/java/ch/dissem/bitmessage/entity/Plaintext.java b/core/src/main/java/ch/dissem/bitmessage/entity/Plaintext.java index fbd5d48..fc38c65 100644 --- a/core/src/main/java/ch/dissem/bitmessage/entity/Plaintext.java +++ b/core/src/main/java/ch/dissem/bitmessage/entity/Plaintext.java @@ -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);