Skip to content
Snippets Groups Projects
Unverified Commit 169f971c authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: NullPointer for message code

parent a79fdd29
No related branches found
No related tags found
No related merge requests found
...@@ -32,4 +32,4 @@ default_status = ACTIVE ...@@ -32,4 +32,4 @@ default_status = ACTIVE
;exclude.group = [uncomment and put excluded groups here] ;exclude.group = [uncomment and put excluded groups here]
;it is necessary to add at least one admin ;it is necessary to add at least one admin
user.{a user}.roles = administration ;user.[uncomment a set a username here].roles = administration
...@@ -79,20 +79,20 @@ public class Message extends Exception implements Comparable<Message>, ToElement ...@@ -79,20 +79,20 @@ public class Message extends Exception implements Comparable<Message>, ToElement
this(type, code, null, null); this(type, code, null, null);
} }
public Message(final int code, final String description) { public Message(final Integer code, final String description) {
this("Message", code, description, null); this("Message", code, description, null);
} }
public Message(final MessageType type, final int code, final String description) { public Message(final MessageType type, final Integer code, final String description) {
this(type.toString(), code, description, null); this(type.toString(), code, description, null);
} }
public Message( public Message(
final MessageType type, final int code, final String description, final String body) { final MessageType type, final Integer code, final String description, final String body) {
this(type.toString(), code, description, body); this(type.toString(), code, description, body);
} }
public Message(final String type, final int code, final String description) { public Message(final String type, final Integer code, final String description) {
this(type, code, description, null); this(type, code, description, null);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment