Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370142

Summary: "Updating Outline view" throws NPE in php < 5.3 project
Product: z_Archived Reporter: Natalia Bartol <natalia.bartol>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ganoro, jacek.pospychala, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Updating Outline view NPE fixed jacek.pospychala: iplog+

Description Natalia Bartol CLA 2012-01-30 11:28:09 EST
Build Identifier: 

Side effect of changes introduced by patch in Bug 368951.
Updating Outline view job throws NPE for projects created with PHP < 5.3.

!ENTRY org.eclipse.core.jobs 4 2 2012-01-30 12:01:53.160
!MESSAGE An internal error occurred during: "Updating Outline view".
!STACK 0
java.lang.NullPointerException
at org.eclipse.php.internal.ui.outline.PHPOutlineContentProvider.getUseStatements(PHPOutlineContentProvider.java:342)
at org.eclipse.php.internal.ui.outline.PHPOutlineContentProvider.access$1(PHPOutlineContentProvider.java:336)
at org.eclipse.php.internal.ui.outline.PHPOutlineContentProvider$ElementChangedListener$1.run(PHPOutlineContentProvider.java:206)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always

Steps to Reproduce:
1. Open Outline view.
2. Create a PHP 5.2 project (using PHP 5.2 executable).
3. Open any .php file and start typing.
Comment 1 Natalia Bartol CLA 2012-01-30 11:33:01 EST
Created attachment 210268 [details]
Updating Outline view NPE fixed

Checking if fSourceModule == null added in getUseStatements() method.
Comment 2 Roy Ganor CLA 2012-01-30 12:39:00 EST
committed,

thanks!
Comment 3 Sylvia Tancheva CLA 2012-07-09 05:23:34 EDT
Verified. Closing
Ilina Stefanova