Skip to content
Permalink
Browse files
[FIXED JENKINS-13925] fixed NPE if no groupChats were configured, pre…
…viously
  • Loading branch information
kutzi committed Jun 3, 2012
1 parent d1515ae commit da69c972a35c75542a0745d70d6807bac1708950
Showing 1 changed file with 5 additions and 1 deletion.
@@ -791,9 +791,13 @@ public List<IMMessageTarget> getDefaultTargets() {
* Deserialize old descriptors.
*/
private Object readResolve() {

if (this.defaultTargets == null) {
this.defaultTargets = new ArrayList<IMMessageTarget>();
}

if (this.initialGroupChats != null) {
String[] split = this.initialGroupChats.trim().split("\\s");
this.defaultTargets = new ArrayList<IMMessageTarget>();
for (String chatName : split) {
this.defaultTargets.add(new GroupChatIMMessageTarget(chatName, null, false));
}

0 comments on commit da69c97

Please sign in to comment.