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

Enterprise: Fix multiple places where null values could be encountered and are not protected #7603

Merged

Conversation

matthiasblaesing
Copy link
Contributor

Observed exception:

java.lang.NullPointerException: Cannot invoke "org.netbeans.api.j2ee.core.Profile.isAtMost(org.netbeans.api.j2ee.core.Profile)" because "profile" is null
    at org.netbeans.modules.websvc.rest.editor.AsyncConverter.isApplicable(AsyncConverter.java:98)
    at org.netbeans.modules.websvc.rest.editor.AsyncConverterTask.run(AsyncConverterTask.java:61)
    at org.netbeans.modules.websvc.rest.editor.AsyncConverterTask.run(AsyncConverterTask.java:52)
[catch] at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
    at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
    at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
    at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)

…d and are not protected

Observed exception:

java.lang.NullPointerException: Cannot invoke "org.netbeans.api.j2ee.core.Profile.isAtMost(org.netbeans.api.j2ee.core.Profile)" because "profile" is null
    at org.netbeans.modules.websvc.rest.editor.AsyncConverter.isApplicable(AsyncConverter.java:98)
    at org.netbeans.modules.websvc.rest.editor.AsyncConverterTask.run(AsyncConverterTask.java:61)
    at org.netbeans.modules.websvc.rest.editor.AsyncConverterTask.run(AsyncConverterTask.java:52)
[catch] at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
    at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
    at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
    at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
@matthiasblaesing matthiasblaesing added the Java EE/Jakarta EE [ci] enable enterprise job label Jul 21, 2024
@matthiasblaesing matthiasblaesing added this to the NB23 milestone Jul 21, 2024
@apache apache locked and limited conversation to collaborators Jul 21, 2024
@matthiasblaesing matthiasblaesing added the enterprise [ci] enable enterprise job label Jul 21, 2024
@apache apache unlocked this conversation Jul 21, 2024
@matthiasblaesing matthiasblaesing merged commit b2b45ae into apache:master Jul 25, 2024
31 checks passed
@matthiasblaesing matthiasblaesing deleted the null_checks_enterprise branch July 25, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise [ci] enable enterprise job Java EE/Jakarta EE [ci] enable enterprise job
Projects
Development

Successfully merging this pull request may close these issues.

2 participants