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

Doesn't seem to work on localizable strings #5

Closed
nicholaslie90 opened this issue Nov 25, 2016 · 2 comments
Closed

Doesn't seem to work on localizable strings #5

nicholaslie90 opened this issue Nov 25, 2016 · 2 comments

Comments

@nicholaslie90
Copy link

nicholaslie90 commented Nov 25, 2016

Hi @roana0229, I'd like to thank you for your time to make this awesome plugin. However, upon my testing, it doesn't seem to work on localizable strings (strings-in.xml, strings-de.xml, etc) and only works on strings.xml. When I try to reformat the file, I got the following error.

screen shot 2016-11-25 at 16 21 03

Here's the stacktrace:
null java.lang.NullPointerException at XmlSorterAction$NodeComparator.compare(XmlSorterAction.java:129) at XmlSorterAction$NodeComparator.compare(XmlSorterAction.java:119) at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) at java.util.TimSort.sort(TimSort.java:234) at java.util.Arrays.sort(Arrays.java:1512) at java.util.ArrayList.sort(ArrayList.java:1454) at java.util.Collections.sort(Collections.java:175) at XmlSorterAction.actionPerformed(XmlSorterAction.java:70) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:595) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:646) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:485) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:215) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:631) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@nicholaslie90
Copy link
Author

Oh man, it turns out I got a malformed XML. Everything's good!

@roana0229
Copy link
Owner

roana0229 commented Nov 26, 2016

Hi @nicholaslie90, Thank you for using this plugin!

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

No branches or pull requests

2 participants