Skip to content

Commit 0e7fd67

Browse files
committed
AXIS2-4833: Fix a potential NullPointerException in RepositoryListener; URI.getScheme() can return null.
1 parent ac12c65 commit 0e7fd67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected void loadClassPathModules() {
135135
int idx = path.lastIndexOf("!/");
136136
if (idx != -1 && path.substring(idx+2).equals("META-INF/module.xml")) {
137137
moduleURI = new URI(path.substring(0, idx).replaceAll(" ", "%20"));
138-
if (!moduleURI.getScheme().equals("file")) {
138+
if (!"file".equals(moduleURI.getScheme())) {
139139
continue;
140140
}
141141
} else {

0 commit comments

Comments
 (0)