This is an automated email from the ASF dual-hosted git repository. skygo 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 ae1e652ee9 Fix possible NPE in NexusRepositoryIndexerImpl exception handler. new 62a9953d4d Merge pull request #4705 from mbien/nexus-repo-indexer-npe ae1e652ee9 is described below commit ae1e652ee9890634bb8a9f3a07ea10aef0089fd6 Author: Michael Bien <mbie...@gmail.com> AuthorDate: Fri Sep 30 05:39:03 2022 +0200 Fix possible NPE in NexusRepositoryIndexerImpl exception handler. --- .../org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java b/java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java index a6e8b22d18..428a5528c2 100644 --- a/java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java +++ b/java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java @@ -583,7 +583,7 @@ public class NexusRepositoryIndexerImpl implements RepositoryIndexerImplementati File tmpFolder = Places.getCacheDirectory(); // see also issue #250365 String noSpaceLeftMsg = null; - if(e.getMessage().contains("No space left on device")) { + if(e.getMessage() != null && e.getMessage().contains("No space left on device")) { noSpaceLeftMsg = Bundle.MSG_NoSpace(tmpFolder.getAbsolutePath(), repo.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