Replies: 4 comments 5 replies
-
Hey @mtbadi39 and thx for the info. Unfortunately we need more information. Can you please attach the JS file or maybe the project that you've opened? Please give us as much information as we need to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
-
Hey @Chris2011, Note that the NPE occured not only with js but also with xhtml files. |
Beta Was this translation helpful? Give feedback.
-
Please test with the most recent build of NetBeans: 14-rc1 https://lists.apache.org/thread/hydrglnm2cst3s31tkbfgktwg4rsylgb. The stack trace suggests, that you see the same issue, that was fixed in: That fix is part of: and will be in NB14. |
Beta Was this translation helpful? Give feedback.
-
@Chris2011, please take a look at #4000, #4033 and #4035. |
Beta Was this translation helpful? Give feedback.
-
Hi every one;
A NullPointerException when opening js file in editor :
Product Version: Apache NetBeans IDE 13
Java: 18; OpenJDK 64-Bit Server VM 18+36
Runtime: OpenJDK Runtime Environment 18+36
System: Windows 10 version 10.0 running on amd64; UTF-8; fr_FR (nb)
java.lang.NullPointerException: The content parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:64) at org.netbeans.modules.csl.api.Documentation.create(Documentation.java:52) at org.netbeans.modules.javascript2.nodejs.editor.NodeJsDataProvider.createProperty(NodeJsDataProvider.java:472) at org.netbeans.modules.javascript2.nodejs.editor.NodeJsDataProvider.addProperties(NodeJsDataProvider.java:484) at org.netbeans.modules.javascript2.nodejs.editor.NodeJsDataProvider.getGlobalObjects(NodeJsDataProvider.java:401) at org.netbeans.modules.javascript2.nodejs.editor.model.NodeJsModelInterceptor.getGlobalObjects(NodeJsModelInterceptor.java:47) at org.netbeans.modules.javascript2.nodejs.editor.model.NodeJsModelInterceptor.interceptGlobal(NodeJsModelInterceptor.java:41) at org.netbeans.modules.javascript2.model.ModelExtender.getExtendingGlobalObjects(ModelExtender.java:114) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypeFromExpression(ModelUtils.java:856) at org.netbeans.modules.javascript2.model.api.ModelUtils.resolveTypes(ModelUtils.java:1353) at org.netbeans.modules.javascript2.editor.JsStructureScanner$JsSimpleStructureItem.<init>(JsStructureScanner.java:740) at org.netbeans.modules.javascript2.editor.JsStructureScanner.getEmbededItems(JsStructureScanner.java:160) at org.netbeans.modules.javascript2.editor.JsStructureScanner.getEmbededItems(JsStructureScanner.java:138) at org.netbeans.modules.javascript2.editor.JsStructureScanner.scan(JsStructureScanner.java:92) at org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(ElementScanningTask.java:149) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:132) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:116) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178) Caused: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83) [catch] at org.netbeans.modules.csl.navigation.ElementScanningTask.computeStructureRoot(ElementScanningTask.java:137) at org.netbeans.modules.csl.navigation.ClassMemberPanelUI$1$1.run(ClassMemberPanelUI.java:203) at org.netbeans.modules.csl.navigation.ElementScanningTask.runWithCancelService(ElementScanningTask.java:254) at org.netbeans.modules.csl.navigation.ClassMemberPanelUI$1.run(ClassMemberPanelUI.java:199) at org.netbeans.modules.csl.navigation.ClassMemberPanelUI$1.run(ClassMemberPanelUI.java:191) at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:120) at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:88) 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:279) 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:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Beta Was this translation helpful? Give feedback.
All reactions