Skip to content

Commit

Permalink
Allow null messages, avoid exploding event handlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Holmes committed Jan 15, 2015
1 parent cc5547d commit 9c135b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/com/dmdirc/logger/ProgramError.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

import javax.annotation.Nullable;

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

/**
Expand Down Expand Up @@ -86,9 +85,7 @@ public ProgramError(final ErrorLevel level, final String message,
final DMDircMBassador eventBus,
final boolean appError) {
checkNotNull(level);
checkNotNull(message);
checkNotNull(date);
checkArgument(!message.isEmpty());

this.level = level;
this.message = message;
Expand Down

0 comments on commit 9c135b3

Please sign in to comment.