瀏覽代碼

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…
取消
儲存