jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GRECLIPSE
  • GRECLIPSE-148

NPE when creating a new groovy class with the class wizard

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.6
  • Fix Version/s: 1.6.0
  • Component/s: None
  • Labels:
    None
  • Environment:
    Eclipse 3.4
  • Patch Submitted:
    Yes

Description

This Error disappears if the setting for file comments for new classes is not empty in the eclipse code templates.

Stacktrace:

java.lang.NullPointerException
	at java.io.StringReader.<init>(StringReader.java:33)
	at org.codehaus.groovy.eclipse.ui.ArtifactCodeGenerator.fixCodeWithPrefix(ArtifactCodeGenerator.java:145)
	at org.codehaus.groovy.eclipse.ui.ArtifactCodeGenerator.addCode(ArtifactCodeGenerator.java:120)
	at org.codehaus.groovy.eclipse.ui.ArtifactCodeGenerator.addCode(ArtifactCodeGenerator.java:81)
	at org.codehaus.groovy.eclipse.wizards.NewClassWizardPage.createGroovyType(NewClassWizardPage.java:254)
	at org.codehaus.groovy.eclipse.wizards.NewClassWizard.finishPage(NewClassWizard.java:46)
	at org.codehaus.groovy.eclipse.wizards.NewClassWizard$1.run(NewClassWizard.java:58)
	at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    GRECLIPSE-148.patch
    06/Aug/08 12:01 PM
    0.8 kB
    Mathias Brökelmann

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mathias Brökelmann added a comment - 06/Aug/08 12:01 PM

patch to verify that the file comment is not null

Show
Mathias Brökelmann added a comment - 06/Aug/08 12:01 PM patch to verify that the file comment is not null
Hide
Permalink
James E. Ervin added a comment - 12/Aug/08 4:17 PM

Applied the patch, thank you.

Show
James E. Ervin added a comment - 12/Aug/08 4:17 PM Applied the patch, thank you.

People

  • Assignee:
    James E. Ervin
    Reporter:
    Mathias Brökelmann
Vote (0)
Watch (0)

Dates

  • Created:
    06/Aug/08 11:59 AM
    Updated:
    04/Mar/11 11:08 AM
    Resolved:
    12/Aug/08 4:17 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.