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.
Summary: | NullPointerException at org.netbeans.modules.refactoring.php.findusages.WhereUsedElement.create | ||
---|---|---|---|
Product: | php | Reporter: | FTDeBUGgeR |
Component: | Refactoring | Assignee: | Petr Pisl <ppisl> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, Sc0tTyXL, vriha |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 161381 |
Attachments: |
stacktrace
stacktrace |
Description
FTDeBUGgeR
2010-12-22 09:53:19 UTC
Created attachment 104389 [details]
stacktrace
Created attachment 105333 [details]
stacktrace
Tried to do a refactor, project wide.
Got this exception when doing the search.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=161381 This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=161381 IMHO the situation can happen when the project has the default encoding UTF-8 and there are files that are not in UTF-8 encoding. The the document is not opened and the refactoring can not be done. Fixed in the web main: http://hg.netbeans.org/web-main/rev/dcd173f0ae37 and adding logging http://hg.netbeans.org/web-main/rev/6948d24b1a4f Can someone from QA tested? (In reply to comment #6) > Can someone from QA tested? Yes, we'll do so. I'll test it as soon as possible Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/dcd173f0ae37 User: Petr Pisl <ppisl@netbeans.org> Log: #193729 - NullPointerException at org.netbeans.modules.refactoring.php.findusages.WhereUsedElement.create I created project and put some files with different encoding (utf-8 and ANSII), one with method declaration, other one with was calling this method. Command "Find Usages" works fine, "Refactor Rename" also without problems. Verified The patch transplanted into releases repository, release70 branch |