Fixed unit test fail from vCard change
[zxing.git] / core / src / com / google / zxing / client / result / VCardResultParser.java
index 865fec4..047c342 100644 (file)
@@ -115,6 +115,9 @@ final class VCardResultParser extends ResultParser {
   }
 
   private static boolean isLikeVCardDate(String value) {
+    if (value == null) {
+      return true;
+    }
     // Not really sure this is true but matches practice
     // Mach YYYYMMDD
     if (isStringOfDigits(value, 8)) {