NLSurfMan / tasks

IntelliJ Tasks Plugin
http://confluence.jetbrains.net/display/CONTEST/Tasks
29 stars 16 forks source link

Rider issue: path in TreePath must be non null and not empty. #31

Open anton-arsentyev opened 6 years ago

anton-arsentyev commented 6 years ago

OS: Mac OS X Sierra IDE: Rider 2017.3.1

Stacktrace:

path in TreePath must be non null and not empty.
java.lang.IllegalArgumentException: path in TreePath must be non null and not empty.
    at javax.swing.tree.TreePath.<init>(TreePath.java:102)
    at org.dubik.tasks.ui.tree.TaskTreeModel.handleChangeTaskEvent(TaskTreeModel.java:185)
    at org.dubik.tasks.model.impl.TaskModel.fireChangeTaskEvent(TaskModel.java:332)
    at org.dubik.tasks.model.impl.TaskModel.completeTask(TaskModel.java:159)
    at org.dubik.tasks.TaskController.completeTask(TaskController.java:244)
    at org.dubik.tasks.ui.actions.MarkCompletedAction.actionPerformed(MarkCompletedAction.java:39)
    at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:193)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:151)
    at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:344)
    at java.awt.Component.processEvent(Component.java:6306)
    at java.awt.Container.processEvent(Container.java:2237)
    at java.awt.Component.dispatchEventImpl(Component.java:4897)
    at java.awt.Container.dispatchEventImpl(Container.java:2295)
    at java.awt.Component.dispatchEvent(Component.java:4719)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
    at java.awt.Container.dispatchEventImpl(Container.java:2281)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4719)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:737)
    at java.awt.EventQueue$4.run(EventQueue.java:735)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:822)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
    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)
NLSurfMan commented 6 years ago

Thanks for reporting this, I'll look into it. Does this happen in specific situations? Do you have way to reproduce this?

anton-arsentyev commented 6 years ago

@NLSurfMan steps:

  1. Create new task
  2. Hide all completed tasks
  3. Mark task as completed

As result this error.