changeset 45:ea757b766baa

hack
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Jun 2021 15:24:06 -0600
parents cc5b7d515580
children 7ac7f55e16cf
files src/nabble/model/Message.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r cc5b7d515580 -r ea757b766baa src/nabble/model/Message.java
--- a/src/nabble/model/Message.java	Fri Jun 11 09:43:51 2021 -0600
+++ b/src/nabble/model/Message.java	Mon Jun 14 15:24:06 2021 -0600
@@ -161,7 +161,7 @@
 
 	public Message(String raw,Format format) {
 		this.raw = raw;
-		this.format = format;
+		this.format = format!=null ? format : Format.TEXT;
 	}
 
 	public String getRaw() {