From 41364de22f7d6d074906739ef8f4ebc5fedb2b49 Mon Sep 17 00:00:00 2001 From: masumcse1 Date: Thu, 25 May 2023 01:18:40 +0600 Subject: [PATCH] fix nullpointerexception issue when getting files from local meveo maven --- .../main/java/org/meveo/admin/web/servlet/MavenFileServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meveo-admin-web/src/main/java/org/meveo/admin/web/servlet/MavenFileServlet.java b/meveo-admin-web/src/main/java/org/meveo/admin/web/servlet/MavenFileServlet.java index 3987a98d7..10d2cfff5 100644 --- a/meveo-admin-web/src/main/java/org/meveo/admin/web/servlet/MavenFileServlet.java +++ b/meveo-admin-web/src/main/java/org/meveo/admin/web/servlet/MavenFileServlet.java @@ -170,7 +170,7 @@ private void processRequest(HttpServletRequest request, HttpServletResponse resp String artifactName = requestedFileName.substring(0, indexOf); String version = requestedFileName.substring(indexOf + 1); module = moduleService.findByCode(artifactName); - if (!module.getCurrentVersion().equalsIgnoreCase(version)) { + if (module !=null && !module.getCurrentVersion().equalsIgnoreCase(version)) { module = null; } }