Perforce plugin Exception

Got the following exception when closing the Perforce logs window:

Error message: Assertion failed: Access is allowed from event dispatch thread only.
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)

at com.intellij.openapi.l.a.c.assertIsDispatchThread(c.java:6)

at com.intellij.openapi.wm.impl.c.registerToolWindow(c.java:173)

at com.devbrat.vcs.perforce.ui.PerforceToolWindowManager.getP4LogWindow(PerforceToolWindowManager.java:65)

at com.devbrat.vcs.perforce.PerforceVcs.command(PerforceVcs.java:478)

at com.perforce.api.P4Process.notifyCommandListener(P4Process.java:253)

at com.perforce.api.P4Process.exec(P4Process.java:203)

at com.perforce.api.FileEntry.getFiles(FileEntry.java:543)

at com.devbrat.vcs.perforce.FileEntryProvider.loadFileEntries(FileEntryProvider.java:212)

at com.devbrat.vcs.perforce.FileEntryProvider.refreshCache(FileEntryProvider.java:165)

at com.devbrat.vcs.perforce.FileEntryProvider$2.run(FileEntryProvider.java:52)

at com.intellij.openapi.l.a.c.runReadAction(c.java:300)

at com.devbrat.vcs.perforce.FileEntryProvider$1.run(FileEntryProvider.java:50)

at java.util.TimerThread.mainLoop(Timer.java:432)

at java.util.TimerThread.run(Timer.java:382)

Please sign in to leave a comment.