Menu

#3 java.lang.NullPointerException when opening a fresh index fi

1.0.x
closed
Editor (8)
6
2020-04-12
2011-06-25
Anonymous
No

java.lang.NullPointerException
at org.isandlatech.plugins.rest.editor.RestViewerConfiguration.getTextHover(RestViewerConfiguration.java:372)
at org.eclipse.jface.text.source.SourceViewerConfiguration.getTextHover(SourceViewerConfiguration.java:302)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:505)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3250)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:432)
at org.isandlatech.plugins.rest.editor.RestEditor.createPartControl(RestEditor.java:100)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)

Discussion

  • Thomas Calmant

    Thomas Calmant - 2011-06-26

    Problem found.
    A test is missing while searching for spell engine.
    (Manual fix : it may work by unchecking "Activate spell engine" in ReST editor preferences)

     
  • Guard

    Guard - 2011-06-26

    No, this is not the fix - the feature was unchecked by default, I never checked it.
    Checking and unchecking doesn't give an effect as well.

     
  • Thomas Calmant

    Thomas Calmant - 2011-06-27

    A new version of the plug-in is on-line with a patch for that code area.
    It should be OK, but if not, let me know.
    I'll make a code review this night (GMT+2) to see if there are some other possible errors of this kind.

     
  • Anonymous

    Anonymous - 2011-06-27

    Thanks, it helped!
    Looks great, especially with color themes addon.
    Offtop: I suggest you add a link to Eclipse Color Themes to you documentation, as it was a bit confusing to me where to find them (though I managed to solve it quite fast :)

     
  • Thomas Calmant

    Thomas Calmant - 2011-06-28

    Great !

    I'll prepare a note for Eclipse Color Theme, for the next version of this plug-in : the user should be able to choose which ReST color to link with which theme color.

     
  • Thomas Calmant

    Thomas Calmant - 2020-04-12
    • status: open --> closed
     

Log in to post a comment.