소스 검색

Check for NullPointer to remove exception spam

tags/8.1.0.alpha5
Knoobie 7 년 전
부모
커밋
60a6e0282e
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12
    0
      server/src/main/java/com/vaadin/server/communication/PushHandler.java

+ 12
- 0
server/src/main/java/com/vaadin/server/communication/PushHandler.java 파일 보기

@@ -308,8 +308,20 @@ public class PushHandler {
// We don't want to use callWithUi here, as it assumes there's a client
// request active and does requestStart and requestEnd among other
// things.
if(event == null){
getLogger().log(Level.SEVERE,
"Could not get event. This should never happen.");
return;
}

AtmosphereResource resource = event.getResource();

if(resource == null){
getLogger().log(Level.SEVERE,
"Could not get resource. This should never happen.");
return;
}

VaadinServletRequest vaadinRequest = new VaadinServletRequest(
resource.getRequest(), service);
VaadinSession session = null;

Loading…
취소
저장