Protect against NullPointerException

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2444 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-02-22 20:06:03 +00:00
parent e21ae32722
commit 190e817fb8

View File

@ -249,8 +249,8 @@ public class ExcelImporter extends TabularImportingParserBase {
if (hyperlink != null) {
String url = hyperlink.getAddress();
if (url.startsWith("http://") ||
url.startsWith("https://")) {
if (url != null && (url.startsWith("http://") ||
url.startsWith("https://"))) {
final String sig = "freebase.com/view";