Skip to content

Commit

Permalink
Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Nov 8, 2013
1 parent ab3fccd commit 6cd13b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ protected WebSocketHandler postProcessMapping(WebSocket webSocket, AtmosphereReq
}

try {
webSocket.resource().setBroadcaster(AnnotationUtil.broadcaster(framework, p.broadcasterClazz, path));
webSocket.resource().setBroadcaster(AnnotationUtil.broadcaster(framework, p != null ? p.broadcasterClazz : w.broadcasterClazz, path));
} catch (Exception e) {
logger.error("", e);
}
Expand Down

0 comments on commit 6cd13b2

Please sign in to comment.