]> source.dussan.org Git - vaadin-framework.git/commit
Fix possible NPE with MPR (#12040)
authorTatu Lund <tatu@vaadin.com>
Wed, 5 Aug 2020 10:00:28 +0000 (13:00 +0300)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 10:00:28 +0000 (13:00 +0300)
commitb36dc81569fffc9d12fd6648366c965bbae4000e
tree57391f6040dd7f53f9a76b5c50be917bc7a8901c
parent446a7680c2903d03a90e7eb869ea67ef9a23c51f
Fix possible NPE with MPR (#12040)

It is possible when Vaadin 8 is used with MPR, that ui.getCurrent().getSession() returns null.

See: https://github.com/vaadin/multiplatform-runtime/issues/5
server/src/main/java/com/vaadin/server/Page.java
server/src/test/java/com/vaadin/server/communication/ServletUIInitHandlerTest.java