Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in theme preferences #130

Closed
svenefftinge opened this issue Aug 9, 2017 · 4 comments
Closed

NPE in theme preferences #130

svenefftinge opened this issue Aug 9, 2017 · 4 comments
Labels

Comments

@svenefftinge
Copy link

When trying to add another theme:

java.lang.NullPointerException
at org.eclipse.tm4e.ui.internal.preferences.ThemePreferencePage$1.selectionChanged(ThemePreferencePage.java:217)
at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:155)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
at org.eclipse.ui.internal.JFaceUtil$$Lambda$8/1294605731.run(Unknown Source)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:152)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2180)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1223)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1252)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:240)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:400)

@angelozerr
Copy link
Contributor

angelozerr commented Aug 9, 2017

I don't understand how you can have this error? Today you cannot add new theme. The "New" button should be disabled.

Today tm4e uses CSS to defines themes, but I would like to use TextMate theme (see #2). I have started to develop a TextMate theme parser (like VSCode) but now I must support tokenizeLine2 (like VSCode) (see #38)

It's a big work, I must find time to do that -(

@angelozerr
Copy link
Contributor

angelozerr commented Sep 8, 2017

@svenefftinge could you tell me please how you can have this error please. Thanks!

@svenefftinge
Copy link
Author

AFAIR, I simply opened the preferences and tried to change them.

@mickaelistria
Copy link
Contributor

I'm closing as cannot reproduce.
If you can reproduce it with latest snapshots, feel free to reopen with more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants