RFR: 8264990: Fix segfault when accessing local storage in webview
Matthias Bläsing
github.com+2179736+matthiasblaesing at openjdk.java.net
Fri Apr 9 19:37:41 UTC 2021
On Fri, 9 Apr 2021 19:10:13 GMT, Johan Vos <jvos at openjdk.org> wrote:
>> I just tried it on Linux and get the same failure:
>>
>> Caused by: java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because the return value of "java.lang.Class.getResource(String)" is null
>> at mymod/myapp7.LocalStorageAccessWithModuleLayer.start(LocalStorageAccessWithModuleLayer.java:92)
>> at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:849)
>> at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:474)
>> at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:447)
>> at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
>> at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:446)
>> at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
>> at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
>> at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
>> ... 1 more
>
> I get the same error. For some reason, the resource isn't found when it's on the root.
> Moving it inside the app7 package work.
Thank you both for checking. I noticed, there were two copies of the HTML present in the `build` folder, which explains the strange behavior.
-------------
PR: https://git.openjdk.java.net/jfx/pull/458
More information about the openjfx-dev
mailing list