This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239771 - Spock. NullPointerException. Rename of test with name kind of "connection to database".
Summary: Spock. NullPointerException. Rename of test with name kind of "connection to ...
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-24 20:25 UTC by narsereg
Modified: 2014-01-06 10:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (60.07 KB, application/octet-stream)
2013-12-24 20:25 UTC, narsereg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description narsereg 2013-12-24 20:25:18 UTC
Created attachment 143431 [details]
messages.log

Spock. Simple test:

def "connection to database"(){
        expect:
        dbs.connectDatabase(dbName) > -1
}

An error in attachment I got after pressing Ctrl-R (rename) with cursor on method name and clicking on button Preview in dialog. 
I have this error everywhere in tests with name in quotes.
Comment 1 Martin Janicek 2014-01-06 10:12:16 UTC
I wasn't able to reproduce the problem, but based on the stacktrace I put a simple null check in change-set: web-main #6442e6ad2a19

Should be fixed, thanks for the report