JavadocReport throws NPE
------------------------

         Key: MNG-779
         URL: http://jira.codehaus.org/browse/MNG-779
     Project: Maven 2
        Type: Bug
    Versions: 2.0-beta-1    
 Environment: SVN revision 239419 on Linux
 Reporter: Bob Allison


Running site:site on a project that was working yesterday (revision 235747), 
received teh following exception:
[INFO] Generate "JavaDocs" report.
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Diagnosis: Error during report generation
[INFO] 
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error during report generation
        at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:492)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:364)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:478)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:441)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:316)
        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:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.reporting.MavenReportException: An error has 
occurred in javadoc report generation.
        at 
org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:852)
        at 
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:613)
        at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:298)
        ... 16 more
Caused by: java.lang.NullPointerException
        at 
org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:795)
        ... 18 more

The code in JavadocReport is: if ( this.doctitle.equals( DEFAULT_DOCTITLE ) )

I am assuming that doctitle is not being initialized properly.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to