PreviousNextTracker indexSee it online !

(179/231) 3599336 - FSB roots:/ node (win xp) NPE (lots of network drives)

I'm using jEdit 5.0.0 on Windows XP SP3.

In the file browser (or file opening window), when I select the root node, "loading" is displayed but the file list is never refreshed.

The activity logs contains the following error report:

18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: java.lang.NullPointerException
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.getTextLength(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.reset(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Matcher.(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.util.regex.Pattern.matcher(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.browser.VFSBrowser.directoryLoaded(
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at org.gjt.sp.jedit.browser.BrowserView$
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.access$000(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$ Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue$ Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at Method)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at$1.doIntersectionPrivilege(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
18:14:50 [AWT-EventQueue-0] [error] AWT-EventQueue-0: at Source)

There is a thread in the forum about this problem:

Submitted malmeje - 2013-01-03 - 15:54:01z Assigned nobody
Priority 5 Category Windows Specific
Status Open Group severe bug
Resolution None Visibility No


2013-01-27 - 23:06:29z
Hi, I would like to work in this bug. would you accept the patch later when I solve it?
2013-01-28 - 16:59:41z

Sure, I'll accept the patch.

Thank you very much.
2013-01-28 - 18:57:12z
Anyone can submit a patch to fix any bug at any time. Please open a separate ticket in jedit-patches tracker.
You do not need to ask permission to work on something. And you do not need to be a member of the project.
An active core developers is responsible for reviewing and accepting it, not usually the reporter.
IMHO, this bug report is complete because it does not contain enough information to reproduce.
2013-01-28 - 18:57:58z
oops. I meant to say this bug report is *INCOMPLETE*
2013-01-29 - 16:50:11z
What kind of information do you need to make the report complete?
2013-01-29 - 17:08:15z
oops. maybe it is enough information. I did not try to reproduce it on windows yet.
2013-02-12 - 07:01:39z
I am unable to reproduce this on Windows with jEdit 5.1pre1 , Windows7, and Sun/Oracle Java 6. I don't have WIndows XP.

Please attach a complete activity log when it happens as an attachment. I suspect it is just taking a long time to get all of your drives.
2013-02-12 - 07:20:45z
What is in the contents of your "Filter:" field in the file system browser?
2013-02-13 - 11:52:35z
The activity log (already pasted in the bug report) mentions clearly an exception. It is not just taking a long time. The file list remains empty even after an hour.

I have tried with and without filter and got the same problem.

The new summary you gave to this bug is wrong.
2013-02-13 - 21:57:51z
It seems to be somehow related to a glob filter. So I am surprised you get the same thing with and without the filter checkbox checked.
ok, I changed the subject back. But I don't know how to reproduce this issue.
2013-02-14 - 13:09:34z
I just made a new test. I confirm you again that I get this problem with or without filter. And the file list is never displayed even after a very long time.

I understand this problem is not easy to reproduce.

This problem happens on my corporate computer and on my colleague's computers too. I guess there is a problem with the mapped network drives (a lot). The problem happens only when I attempt to display the content of the root node. If I self introduce something in the path field (like "c:\", "w:\", ...) the file list is correctly displayed.

I have no problem on my personal computers where some network drives are mapped too.
2013-07-04 - 16:00:10z

I have some information to add to this bug report.

I could reproduce and refine the analysis of the trouble. As already mentioned, when I click the "roots:" item in the file browser window, the system generates an error and the window freezes. The file system content never appears.

But if I move the vertical scroll bar on the right side of the file system content after a few minutes, the "c:\" item appears. Then if I click the (+) check box, the full file system content is correctly displayed. I guess this is more a display problem than a file system reading problem.

I hope this helps.
2013-07-04 - 16:10:52z
Just guessing now: perhaps to reproduce, one needs a certain number of mapped network drives to be unreachable at the time one tries to browse roots:/ ?

Is it possible to browse each of your mapped network drives with the internet exploder?
2013-07-04 - 16:14:02z
Has this ever happened from Windows 7 or is this Windows XP only?
2013-07-04 - 16:17:05z
Except the CD drive (d:\), I can browse all drives. It happens on Windows XP. Since I don't have a Windows 7 workstation, I don't know whether the problem happens there too.
2013-07-04 - 16:44:38z
If you put disk in the CD drive, does it still happen?
Do any of the network drives have an empty label?

2013-07-05 - 07:02:34z
I still have the problem when there is a CD in the drive. All drives have a label.
2013-08-01 - 09:58:29z
Just for information, I still have the problem with the new jEdit 5.1.
2013-08-01 - 09:59:29z
Just for information, I still have the problem with the new jEdit 5.1.