[jboss-user] [JBoss Tools] - Re: jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE
Rob Stryker
do-not-reply at jboss.com
Wed Jan 11 03:02:05 EST 2012
Rob Stryker [http://community.jboss.org/people/rob.stryker] created the discussion
"Re: jboss-packaging-maven-plugin jboss-sar + m2e + JBT = NPE"
To view the discussion, visit: http://community.jboss.org/message/645861#645861
--------------------------------------------------------------
Judging by the stack trace, he has a reference with a null url. This almost always violates spec, unless the reference is consumed rather than used. Either way, it's obvious that ExportedClassFolderReferenceResolver should at least guard against the possibility of a null reference url.
I'm committing a simple guard check. The logic here is that if the url is null, it cannot possibly be an ExportedClassFolderReferenceResolver reference, since all such references have a url beginning with module:/org.jboss.ide.eclipse.as.wtp.core.vcf.exportedClassFolders
A null reference url cannot be an ExportedClassFolderReferenceResolver. The null check will ensure this method returns false.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645861#645861]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120111/603ed6bc/attachment.html
More information about the jboss-user
mailing list