Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires a function that explicitly informs when a required attribute is missing. #200

Open
yebgi83 opened this issue Nov 3, 2021 · 0 comments

Comments

@yebgi83
Copy link

yebgi83 commented Nov 3, 2021

If both launch and uri properties are missing, a NullPointerException error occurs like below.

java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1535)
at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:457)
at java.lang.ClassLoader.loadClass(ClassLoader.java:398)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at fxlauncher.AbstractLauncher.createApplicationEnvironment(AbstractLauncher.java:175)
at fxlauncher.Launcher.lambda$start$0(Launcher.java:162)
at java.lang.Thread.run(Thread.java:748)

However, these exceptions make it difficult to find the cause.

If there is a missing property necessary for the operation, such as uri or launch attributes, I hope it will be explicitly provided as an exception.

That way, even if the required attributes are missing, I think we can quickly find the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant