Skip to content

Commit

Permalink
Adding a null guard to prevent alarming yet harmless NullPointerExcep…
Browse files Browse the repository at this point in the history
…tion messages in the appserver log. Resolves #1929
  • Loading branch information
Joe Barnes committed Dec 11, 2017
1 parent 06260c6 commit 2175135
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ object SessionMaster extends LiftActor with Loggable {
def isDead(sessionId: String): Boolean = killedSessions.containsKey(sessionId)

private val reaction: PartialFunction[Any, Unit] = {
case RemoveSession(sessionId) =>
case RemoveSession(sessionId) if sessionId != null =>

val ses = lockRead(nsessions)
(Box !! ses.get(sessionId)).foreach {
Expand Down

0 comments on commit 2175135

Please sign in to comment.