Skip to content

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

Description

@yebgi83

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions