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

Bug 319622

Summary: NPE in SubprogramTypeCollector
Product: [Tools] PTP Reporter: Miwako Tokugawa <miwako.tokugawa>
Component: Photran.Refactoring EngineAssignee: Photran Inbox <photran-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
project none

Description Miwako Tokugawa CLA 2010-07-12 14:31:56 EDT
Build Identifier: cdt head as of 7/12/10

java.lang.NullPointerException
        at org.eclipse.photran.internal.core.analysis.binding.SubprogramTypeCollector.typeOf(SubprogramTypeCollector.java:69)
        at org.eclipse.photran.internal.core.analysis.binding.SubprogramTypeCollector.visitASTSubroutineStmtNode(SubprogramTypeCollector.java:41)
        at org.eclipse.photran.internal.core.parser.ASTSubroutineStmtNode.accept(ASTSubroutineStmtNode.java:95)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTSubroutineSubprogramNode(ASTVisitor.java:359)
        at org.eclipse.photran.internal.core.parser.ASTSubroutineSubprogramNode.accept(ASTSubroutineSubprogramNode.java:100)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
 ...

Reproducible: Always

Steps to Reproduce:
load the project attached and select "Enable Fortran Analysis/Reflactor"
Comment 1 Miwako Tokugawa CLA 2010-07-12 14:33:08 EDT
Created attachment 174083 [details]
project
Comment 2 Jeffrey Overbey CLA 2011-03-17 20:56:28 EDT
Thanks for the bug report.  I believe this is fixed in the latest maintenance update (6.0.6); it is definitely fixed in 7.0.  If you still have problems, please let me know.

*** This bug has been marked as a duplicate of bug 317594 ***