Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324050 - NullPointerException in DeclarationScope class
Summary: NullPointerException in DeclarationScope class
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 00:15 EDT by Q.S. Wang CLA
Modified: 2020-05-14 13:21 EDT (History)
2 users (show)

See Also:
qiangsheng.w: review+
ganoro: review+
zhaozhongwei: review+


Attachments
patch (1.68 KB, patch)
2010-08-31 03:26 EDT, Roy Ganor CLA
no flags Details | Diff

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