pombreda / nbgit

Automatically exported from code.google.com/p/nbgit
0 stars 0 forks source link

Usage of NbGit in Netbeans 6.8 causes a String index out of Bounds Exception #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Nbgit 0.3
2. Import a Maven Project
3. Causes a String index Out of Bounds in FnMatch.hasLeadingPeriod, because
stringPos is larger than string-param.

I attached a possible fix, it would be enough to change the order of the
arguments in the if-statement.
I would also suggest to add a check on the range, and then return just false.

I am working on Java 1.5.0_18

Original issue reported on code.google.com by martin.d...@gmail.com on 25 Dec 2009 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I've applied you patched and pushed it to github.com/jonas/nbgit/master

Original comment by jonas.fonseca on 1 Jul 2010 at 3:43