Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370142 - "Updating Outline view" throws NPE in php < 5.3 project
Summary: "Updating Outline view" throws NPE in php < 5.3 project
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 11:28 EST by Natalia Bartol CLA
Modified: 2020-05-14 11:51 EDT (History)
3 users (show)

See Also:


Attachments
Updating Outline view NPE fixed (1.00 KB, patch)
2012-01-30 11:33 EST, Natalia Bartol CLA
jacek.pospychala: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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