Skip to content

Commit

Permalink
[FIXED JENKINS-13925] fixed NPE if no groupChats were configured, pre…
Browse files Browse the repository at this point in the history
…viously
  • Loading branch information
kutzi committed Jun 3, 2012
1 parent d1515ae commit da69c97
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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));
}
Expand Down

0 comments on commit da69c97

Please sign in to comment.