@@ -155,7 +155,7 @@ public final class PackageScanner {
try {
JarEntry entry;
while(null != (entry = istream.getNextJarEntry())) {
- if(entry.getName().startsWith(croot) && !entry.isDirectory()) {
+ if((null == croot || entry.getName().startsWith(croot)) && !entry.isDirectory()) {
action.accept(entry.getName());
return true;
}
@@ -484,7 +484,7 @@ public final class StringUtils {
public static String replace(String text, char search, char newval) {
if(null == text) {
- return "";
+ return null;
final char[] buffer = text.toCharArray();
for(int i=0; i<buffer.length; i++) {