| Summary: | NullPointerException in DeclarationScope class | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Q.S. Wang <qiangsheng.w> | ||||
| Component: | PDT | Assignee: | Zhongwei Zhao <zhaozhongwei> | ||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ganoro, kalin.a | ||||
| Version: | unspecified | Flags: | qiangsheng.w:
review+
ganoro: review+ zhaozhongwei: review+ |
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
this has been fixed already Reopen Created attachment 177812 [details]
patch
fixed Closing... |
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