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

Bug 324050

Summary: NullPointerException in DeclarationScope class
Product: z_Archived Reporter: Q.S. Wang <qiangsheng.w>
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: ganoro, kalin.a
Version: unspecifiedFlags: qiangsheng.w: review+
ganoro: review+
zhaozhongwei: review+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Q.S. Wang CLA 2010-08-31 00:15:45 EDT
The issus is that the IfStatement doens't neccesary have false statement.

StackTrace below

java.lang.NullPointerException

                at org.eclipse.php.internal.core.typeinference.DeclarationScope.getBlock(DeclarationScope.java:161)

                at org.eclipse.php.internal.core.typeinference.DeclarationScope.isInSameBlock(DeclarationScope.java:145)

                at org.eclipse.php.internal.core.typeinference.DeclarationScope.addDeclaration(DeclarationScope.java:121
Comment 1 Zhongwei Zhao CLA 2010-08-31 00:48:58 EDT
this has been fixed already
Comment 2 Q.S. Wang CLA 2010-08-31 01:10:28 EDT
Reopen
Comment 3 Roy Ganor CLA 2010-08-31 03:26:36 EDT
Created attachment 177812 [details]
patch
Comment 4 Q.S. Wang CLA 2010-08-31 06:06:58 EDT
fixed
Comment 5 Kalin CLA 2011-08-02 10:45:24 EDT
Closing...