Permalink
Browse files

npe fixed

  • Loading branch information...
1 parent 6eaf627 commit ce19f8ae1f00b0184cc24a5c1056e74eacc817d3 @xandrox committed Apr 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/de/adorsys/forge/plugin/curl/HeaderCommandCompleter.java
@@ -17,6 +17,7 @@
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -77,6 +78,9 @@ public void complete(CommandCompleterState state) {
}
public static Map<String, String> parseHeader(String headerString) {
+ if (headerString == null) {
+ return Collections.emptyMap();
+ }
HashMap<String, String> parsed = new HashMap<String, String>();
String[] headers = headerString.split(",");
for (String header : headers) {

0 comments on commit ce19f8a

Please sign in to comment.