Netbeans“Add-JAR”导致NullPointerException

时间:2015-03-02 21:15:07

标签: java netbeans plugins jar null

我正在尝试将jar库工具包附加到我的一个netbeans项目中。但是,当我去File>项目属性>图书馆>添加Wrapped Jar导入成功但运行插件会导致NullPointerException。我怀疑这与路径有关但我不了解如何操纵路径或为什么甚至有空指针。

java.lang.NullPointerException
    at org.gephi.desktop.recentfiles.RecentFiles.getMenuPresenter(RecentFiles.java:88)
    at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:100)
    at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:831)
    at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:885)
    at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:730)
    at org.openide.util.Task.run(Task.java:253)
[catch] at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:79)
    at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:171)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

1 个答案:

答案 0 :(得分:0)

NPE不应该发生。所以请在https://netbeans.org/bugzilla/

提交问题