Using "Favorites" feature

I'm trying to use the "add to Favorites" editor menu option for the first time and it does not seem to do anything.
I was trying to use it in a file with xml extension (but not well formed) I don't know if it may be related.
I created a new favorites list (with a topic-related name), and then tried to add my file to it.
THe list appeared in the project tree browser, but stays empty.

Is it supposed to work ?

1 comment
Comment actions Permalink

Investigating further, something changes : when the list is created it displays "nothing to display" in the panel.
After trying to add my file to it, this message is not displayed anymore and i get this exception a few seconds later when i switched to firefox to write this message.

No message
java.lang.NullPointerException
at com.intellij.ide.favoritesTreeView.FavoritesManager.a(FavoritesManager.java:114)
at com.intellij.ide.favoritesTreeView.FavoritesManager.writeExternal(FavoritesManager.java:108)
at com.intellij.openapi.components.impl.ComponentManagerImpl.serializeComponent(ComponentManagerImpl.java:179)
at com.intellij.openapi.project.impl.BaseFileConfigurable.saveToXml(BaseFileConfigurable.java:30)
at com.intellij.openapi.project.impl.ProjectImpl.saveToXml(ProjectImpl.java:102)
at com.intellij.openapi.project.impl.BaseFileConfigurable._save(BaseFileConfigurable.java:103)
at com.intellij.openapi.project.impl.ProjectImpl$4.run(ProjectImpl.java:3)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:77)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:127)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:148)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:36)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:29)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:1)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:23)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:5)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:1)
at com.intellij.util.Alarm$1.run(Alarm.java:106)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:250)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:14)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:178)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

0

Please sign in to leave a comment.