getFullySelectedNode throws NullPointerException
Posted: Thu Aug 07, 2014 4:03 pm
Hi
we are using the Eclipse Oxygen Author in Version 15.2
I create a PropertyTester, which check if a node is fullySelected.
Now I load a file with this content:
The editor shows the content in the text-tab. When I jump to the author tab I get this exception:
Best regards
Denis
we are using the Eclipse Oxygen Author in Version 15.2
I create a PropertyTester, which check if a node is fullySelected
Code: Select all
AuthorNode fullySelectedNode = authorEditorPage.getFullySelectedNode();
Now I load a file with this content:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><note nodeid="000001"><?graphic_path C:\Users\dzy\graphics/?><?tag ?><?rev A.1?><paragraph></paragraph></note>
Code: Select all
java.lang.NullPointerException
at ro.sync.exml.workspace.b.e.b.b.b.getSelectionStart(Unknown Source)
at ro.sync.exml.workspace.b.e.b.b.b.getFullySelectedNode(Unknown Source)
at ro.sync.ecss.extensions.g.getFullySelectedNode(Unknown Source)
at de.kgucms.kgu.tps.client.oxygen.integration.propertytester.EditorNodePropertyTester.test(EditorNodePropertyTester.java:47)
at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)
at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)
at org.eclipse.core.internal.expressions.ReferenceExpression.evaluate(ReferenceExpression.java:70)
at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
at org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:29)
at org.eclipse.ui.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:224)
at org.eclipse.core.commands.Command.setEnabled(Command.java:857)
at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:968)
at org.eclipse.ui.menus.CommandContributionItem.updateToolItem(CommandContributionItem.java:661)
Denis