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 126652 - NPE from JavaRefactoringPlugin.processFiles
Summary: NPE from JavaRefactoringPlugin.processFiles
Status: RESOLVED DUPLICATE of bug 126049
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Daniel Prusa
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2008-02-04 21:23 UTC by Jesse Glick
Modified: 2008-02-10 16:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-02-04 21:23:03 UTC
Breaking commit validation for 47 builds in a row. Does no one pay any attention to broken_builds@netbeans.org?!

java.lang.NullPointerException
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:244)
	at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:230)
	at org.netbeans.modules.refactoring.java.plugins.CopyClassRefactoringPlugin.access$100(CopyClassRefactoringPlugin.java:74)
	at
org.netbeans.modules.refactoring.java.plugins.CopyClassRefactoringPlugin$CopyClass.performChange(CopyClassRefactoringPlugin.java:163)
	at org.netbeans.modules.refactoring.api.RefactoringSession.doRefactoring(RefactoringSession.java:108)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$8.run(ParametersPanel.java:360)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Daniel Prusa 2008-02-07 13:59:19 UTC
I will look at it.
Comment 2 Daniel Prusa 2008-02-07 15:57:49 UTC
NPE caused by null returned by JavaSource.create() method, trying to create JavaSource for non-existing DataObject,
corresponds probably to a file requested to be copied.
It seems the NPE is no longer being thrown by the commit validation.
Comment 3 Jan Lahoda 2008-02-10 16:06:16 UTC
Please see issue #126049 - I do not think there is much that could be done on refactoring/java or java/source side about
the failure as such - I do not see a way for the refactoring to be performed when the file was deleted.

*** This issue has been marked as a duplicate of 126049 ***