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&...]