/*
- * 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.
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);