From 47682bf4676c49741bfd3a6c8bee3d3a7e5399a9 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 28 May 2015 17:43:52 +0200 Subject: [PATCH] fix for unresolved pattern --- htroot/CrawlProfileEditor_p.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.java index 49b10d081..1e7462f87 100644 --- a/htroot/CrawlProfileEditor_p.java +++ b/htroot/CrawlProfileEditor_p.java @@ -158,9 +158,9 @@ public class CrawlProfileEditor_p { prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type", attribute.type); if (attribute.type == CrawlProfile.CrawlAttribute.BOOLEAN) { prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type_checked", - Boolean.parseBoolean(val) ? "1" : "0"); + val == null ? "0" : Boolean.parseBoolean(val) ? "1" : "0"); } else { - prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type_value", val); + prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type_value", val == null ? "" : val); } count++; }