GayaBalan / ivybeans

Automatically exported from code.google.com/p/ivybeans
0 stars 0 forks source link

NullPointerException at org.apache.ivyde.common.ivyfile.IvyModuleDescriptorModel.<init> #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Environment : ivybeans VERSION ???, netbeans VERSION 6.9.1, OS WinXP, jdk 
VERSION 1.6.0_24-b07

Description :
This issue was already few times reported as NB issue. Please resolve this NPE 
to prevent another entering of that, thanks...
BTW, last NB issue: http://netbeans.org/bugzilla/show_bug.cgi?id=197801

User Comments:
swpalmer: editing ivy.xml
swpalmer: loaded Ivy.xml file

Stacktrace: 
java.lang.NullPointerException at
org.apache.ivyde.common.ivyfile.IvyModuleDescriptorModel.<init>(IvyModuleDescrip
torModel.java:550) at
com.googlecode.ivybeans.module.completion.ivyfiles.IvyFileCompletionProvider.get
CodeCompletionProcessor(IvyFileCompletionProvider.java:28) at
com.googlecode.ivybeans.module.completion.IvyCompletionProvider.createTask(IvyCo
mpletionProvider.java:28) at
org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(Completion
Impl.java:638)   at
org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionI
mpl.java:838)   at
org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImp
l.java:324)

Original issue reported on code.google.com by Martin.F...@gmail.com on 2 May 2011 at 5:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

(edit-corrected patch): I could not reproduce.  It looks like this could only 
occur for an invalid ivysettings.xml or bad install since the NPE indicates 
there are no matchers in the ivy configuration.  In any case, the attached 
patch should void the NPE.

Original comment by djswoods...@gmail.com on 2 May 2011 at 10:57

Attachments:

GoogleCodeExporter commented 9 years ago
Not sure if you are planning to get this change also into plugin for NB6.9, but 
please keep in your mind to include it into any new version. Thanks.

Original comment by Martin.F...@gmail.com on 3 May 2011 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by laurent....@gmail.com on 3 May 2011 at 7:48

GoogleCodeExporter commented 9 years ago
commit -m "issue-90 apply patch to avoid a NPE" 
C:/Users/lfo/scm/googlecode/ivybeans/trunk2/ivybeans/ivy-libs/src/org/apache/ivy
de/common/ivyfile/IvyModuleDescriptorModel.java
Sending        
C:/Users/lfo/scm/googlecode/ivybeans/trunk2/ivybeans/ivy-libs/src/org/apache/ivy
de/common/ivyfile/IvyModuleDescriptorModel.java
Transmitting file data ...
Committed revision 306.
Revision: 306
Author  : laurent.foret
Date    : 3 mai 2011 11:27:02
issue-90 apply patch to avoid a NPE

Original comment by laurent....@gmail.com on 3 May 2011 at 9:27