Ant blows with NPE, loose configuration and nothing can be executed

No message
java.lang.NullPointerException
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl.java:360)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.loadClass(AntTypeDefImpl.java:386)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.getDefinitions(AntTypeDefImpl.java:135)
at
com.intellij.lang.ant.psi.impl.AntTypeDefImpl.(AntTypeDefImpl.java:48) at com.intellij.lang.ant.psi.impl.AntElementFactory$10.create(AntElementFactory.java:229) at com.intellij.lang.ant.psi.impl.AntElementFactory.createAntElement(AntElementFactory.java:130) at com.intellij.lang.ant.psi.impl.AntStructuredElementImpl.getChildrenInner(AntStructuredElementImpl.java:378) at com.intellij.lang.ant.psi.impl.AntTargetImpl.getChildrenInner(AntTargetImpl.java:188) at com.intellij.lang.ant.psi.impl.AntElementImpl.getChildren(AntElementImpl.java:106) at com.intellij.lang.ant.psi.impl.AntStructuredElementImpl.getChildren(AntStructuredElementImpl.java:403) at com.intellij.lang.ant.psi.impl.AntStructuredElementImpl.getChildren(AntStructuredElementImpl.java:32) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitTargetChildren(PropertiesBuilder.java:159) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitAntTarget(PropertiesBuilder.java:141) at com.intellij.lang.ant.psi.impl.AntTargetImpl.acceptAntElementVisitor(AntTargetImpl.java:63) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitAntTarget(PropertiesBuilder.java:126) at com.intellij.lang.ant.psi.impl.AntTargetImpl.acceptAntElementVisitor(AntTargetImpl.java:63) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitAntTarget(PropertiesBuilder.java:126) at com.intellij.lang.ant.psi.impl.AntTargetImpl.acceptAntElementVisitor(AntTargetImpl.java:63) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitAntProject(PropertiesBuilder.java:81) at com.intellij.lang.ant.psi.impl.AntProjectImpl.acceptAntElementVisitor(AntProjectImpl.java:42) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.visitAntFile(PropertiesBuilder.java:48) at com.intellij.lang.ant.psi.impl.AntFileImpl.acceptAntElementVisitor(AntFileImpl.java:114) at com.intellij.lang.ant.psi.impl.PropertiesBuilder.defineProperties(PropertiesBuilder.java:180) at com.intellij.lang.ant.psi.impl.AntFileImpl.buildPropertiesMap(AntFileImpl.java:365) at com.intellij.lang.ant.psi.impl.AntFileImpl.getAntProject(AntFileImpl.java:325) at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getAntProject(AntBuildModelImpl.java:84) at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getTargetListImpl(AntBuildModelImpl.java:118) at com.intellij.lang.ant.config.impl.AntBuildModelImpl.access$100(AntBuildModelImpl.java:14) at com.intellij.lang.ant.config.impl.AntBuildModelImpl$2.compute(AntBuildModelImpl.java:98) at com.intellij.lang.ant.config.impl.AntBuildModelImpl$2.compute(AntBuildModelImpl.java:97) at com.intellij.openapi.application.impl.ApplicationImpl$13.run(ApplicationImpl.java:2) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:290) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:261) at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getTargetsList(AntBuildModelImpl.java:96) at com.intellij.lang.ant.config.impl.AntBuildModelImpl.getTargets(AntBuildModelImpl.java:36) at com.intellij.lang.ant.config.impl.AntBuildFileImpl.updateProperties(AntBuildFileImpl.java:240) at com.intellij.lang.ant.config.impl.AntBuildFileImpl.readProperties(AntBuildFileImpl.java:293) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.loadBuildFileProjectProperties(AntConfigurationImpl.java:566) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.access$400(AntConfigurationImpl.java:54) at com.intellij.lang.ant.config.impl.AntConfigurationImpl$3$1.run(AntConfigurationImpl.java:295) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:290) at com.intellij.lang.ant.config.impl.AntConfigurationImpl$3.run(AntConfigurationImpl.java:292) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.runWhenInitialized(AntConfigurationImpl.java:310) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.readExternal(AntConfigurationImpl.java:290) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.loadState(AntConfigurationImpl.java:122) at com.intellij.lang.ant.config.impl.AntConfigurationImpl.loadState(AntConfigurationImpl.java:54) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:52) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$000(ComponentStoreImpl.java:10) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$1.run(ComponentStoreImpl.java:5) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:290) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initComponent(ComponentStoreImpl.java:13) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:21) at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193) at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180) at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162) at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75) at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:22) at com.intellij.lang.ant.config.AntConfiguration.getInstance(AntConfiguration.java:42) at com.intellij.lang.ant.config.explorer.AntExplorerTreeBuilder.(AntExplorerTreeBuilder.java:29) at com.intellij.lang.ant.config.explorer.AntExplorer.]]>(AntExplorer.java:90)
at
com.intellij.lang.ant.config.impl.AntToolwindowRegistrar$3$1.addNotify(AntToolwindowRegistrar.java:65)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at java.awt.Container.addNotify(Container.java:2592)
at javax.swing.JComponent.addNotify(JComponent.java:4665)
at javax.swing.JRootPane.addNotify(JRootPane.java:735)
at java.awt.Container.addNotify(Container.java:2592)
at java.awt.Window.addNotify(Window.java:635)
at java.awt.Dialog.addNotify(Dialog.java:744)
at java.awt.Dialog.conditionalShow(Dialog.java:885)
at java.awt.Dialog.show(Dialog.java:1012)
at
com.intellij.openapi.wm.impl.FloatingDecorator.show(FloatingDecorator.java:13)
at
com.intellij.openapi.wm.impl.ToolWindowManagerImpl$AddFloatingDecoratorCmd.run(ToolWindowManagerImpl.java:2)
at
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:20)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:173)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:141)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:27)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


1 comment

This has been fixed already, will be available in the coming EAP.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.