Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319755 - QVTo: NPE
Summary: QVTo: NPE
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sergey Boyko CLA
QA Contact:
URL:
Whiteboard: R3_0_maintenance
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 12:46 EDT by Nicolas Rouquette CLA
Modified: 2010-07-15 05:15 EDT (History)
0 users

See Also:


Attachments
Proposed patch (1.01 KB, patch)
2010-07-15 05:14 EDT, Sergey Boyko CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Rouquette CLA 2010-07-13 12:46:53 EDT
I get this error while editing  *.qvto files:

java.lang.NullPointerException
	at org.eclipse.ocl.lpg.AbstractParser.setOffsets(AbstractParser.java:253)
	at org.eclipse.m2m.internal.qvt.oml.cst.parser.AbstractQVTParser.setOffsets(AbstractQVTParser.java:1146)
	at org.eclipse.m2m.internal.qvt.oml.cst.parser.QVTOParser.ruleAction(QVTOParser.java:2529)
	at lpg.runtime.BacktrackingParser.process_reductions(BacktrackingParser.java:352)
	at lpg.runtime.BacktrackingParser.parseActions(BacktrackingParser.java:410)
	at lpg.runtime.BacktrackingParser.parseEntry(BacktrackingParser.java:341)
	at lpg.runtime.BacktrackingParser.parse(BacktrackingParser.java:247)
	at org.eclipse.m2m.internal.qvt.oml.cst.parser.QVTOParser.parser(QVTOParser.java:319)
	at org.eclipse.m2m.internal.qvt.oml.cst.parser.QVTOParser.parser(QVTOParser.java:306)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalParser$RunnableQVTParser.runParser(QvtOperationalParser.java:112)
	at org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalParser.parse(QvtOperationalParser.java:64)
	at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.parse(QVTOCompiler.java:280)
	at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.doCompile(QVTOCompiler.java:416)
	at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compileSingleFile(QVTOCompiler.java:373)
	at org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(QVTOCompiler.java:259)
	at org.eclipse.m2m.internal.qvt.oml.editor.ui.QvtCompilerFacade.compile(QvtCompilerFacade.java:76)
	at org.eclipse.m2m.internal.qvt.oml.editor.ui.QvtReconcilingStrategy.getCompiler(QvtReconcilingStrategy.java:88)
	at org.eclipse.m2m.internal.qvt.oml.editor.ui.QvtReconcilingStrategy.reconcileInternal(QvtReconcilingStrategy.java:72)
	at org.eclipse.m2m.internal.qvt.oml.editor.ui.QvtReconcilingStrategy.reconcile(QvtReconcilingStrategy.java:52)
	at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Comment 1 Sergey Boyko CLA 2010-07-15 05:14:23 EDT
Created attachment 174377 [details]
Proposed patch

Upon editing some token can be null-ed due to error recovery rules.
Comment 2 Sergey Boyko CLA 2010-07-15 05:15:48 EDT
Fix is committed in R3_0_maintenance branch.