Bug 24268 - DOM: NPE in NaiveASTFlattener#visit(SwitchCase node)
Summary: DOM: NPE in NaiveASTFlattener#visit(SwitchCase node)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 10:49 EDT by Dirk Baeumer CLA
Modified: 2002-11-12 09:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2002-10-01 10:49:44 EDT
2.x

The code "node.getExpression().accept(this);" causes a NPE for default 
statements since they don't have an expression.

The NaiveASTFlattener got triggered by a ASTNode.toString call.
Comment 1 Olivier Thomann CLA 2002-10-01 11:26:06 EDT
Fixed and released in 2.1 stream.
Regression test added.