This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 8eee2dea1b Prevent NullPointerException when matching filenames in SourceUtils new eaa121c2c7 Merge pull request #5279 from matthiasblaesing/GH-5266 8eee2dea1b is described below commit 8eee2dea1b94c8b1a2355c4174878401e956946e Author: Matthias Bläsing <mblaes...@doppel-helix.eu> AuthorDate: Wed Jan 11 21:02:46 2023 +0100 Prevent NullPointerException when matching filenames in SourceUtils Closes: #5266 --- java/java.source.base/src/org/netbeans/api/java/source/SourceUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java.source.base/src/org/netbeans/api/java/source/SourceUtils.java b/java/java.source.base/src/org/netbeans/api/java/source/SourceUtils.java index 2ceb750050..5b2b9a5880 100644 --- a/java/java.source.base/src/org/netbeans/api/java/source/SourceUtils.java +++ b/java/java.source.base/src/org/netbeans/api/java/source/SourceUtils.java @@ -683,7 +683,7 @@ public class SourceUtils { } final boolean apply(final FileObject fo) { - if (name.equals(fo.getNameExt())) { + if (fo.getNameExt().equals(name)) { return true; } final String foName = fo.getName(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists