Browse code

PIERFTE-5 Fix: npe in vcard empty parameters parsing

Laurent Belmonte authored on 02/02/2016 08:54:39
Showing 1 changed files
... ...
@@ -639,7 +639,7 @@ public final class VCardHelper {
639 639
 		if (parameters != null) {
640 640
 			StringBuilder ret = new StringBuilder();
641 641
 			for (Parameter p : parameters) {
642
-				if (!p.getValue().contains("X-BM-Ref")) {
642
+				if (p != null && p.getValue() != null && !p.getValue().contains("X-BM-Ref")) {
643 643
 					ret.append(p.getValue());
644 644
 					ret.append(";");
645 645
 				}