[
https://jira.codehaus.org/browse/MFINDBUGS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=278069#comment-278069
]
Garvin LeClaire commented on MFINDBUGS-149:
-------------------------------------------
Do you have a project you can share that reproduces this error? All the
Integration tests pass so I would like to have a sample I can add to the
integration tests.
> FindBugsMojo#executeFindBugs throws NPE
> ---------------------------------------
>
> Key: MFINDBUGS-149
> URL: https://jira.codehaus.org/browse/MFINDBUGS-149
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Bug
> Affects Versions: 2.3.3
> Reporter: Kojima Takanori
> Attachments: error.log, FindBugsMojo.goovy.patch
>
>
> I hit a bug when I using 2.3.3-SNAPSHOT (trunk build).
> Here is a stacktrace:
> {code}
> Caused by: java.lang.NullPointerException: Cannot invoke method replaceAll()
> on null object
> at
> org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
> at
> org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:756)
> at
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:730)
> at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
> at
> org.codehaus.mojo.findbugs.FindBugsMojo.getResourceFile(FindBugsMojo.groovy:1060)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
> at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:338)
> at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
> at
> org.codehaus.mojo.findbugs.FindBugsMojo$_executeFindbugs_closure4_closure13.doCall(FindBugsMojo.groovy:839)
> {code}
> Parhaps, there is a side effect of MFINDBUGS-146.
> I made a quick-hack patch, please check.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email