Implemented Paul's solution to the basic/regular build problem -- a sort of pseudo...
[zxing.git] / core / src / com / google / zxing / client / result / BookmarkDoCoMoParsedResult.java
index f170300..e376980 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2007 Google Inc.
+ * Copyright 2007 ZXing authors
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public final class BookmarkDoCoMoParsedResult extends AbstractDoCoMoParsedResult
 
   public static BookmarkDoCoMoParsedResult parse(Result result) {
     String rawText = result.getText();
-    if (!rawText.startsWith("MEBKM:")) {
+    if (rawText == null || !rawText.startsWith("MEBKM:")) {
       return null;
     }
     String title = matchSinglePrefixedField("TITLE:", rawText);