From a4e90bc1dc50af90a0abefd5ed76747b0a2e8b62 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sat, 23 Dec 2006 01:39:00 +0000 Subject: [PATCH] fix + debug-code for http://www.yacy-forum.de/viewtopic.php?p=29126#29126 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3128 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSearchRankingProfile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaSearchRankingProfile.java b/source/de/anomic/plasma/plasmaSearchRankingProfile.java index 95119a2a0..5d95dcd63 100644 --- a/source/de/anomic/plasma/plasmaSearchRankingProfile.java +++ b/source/de/anomic/plasma/plasmaSearchRankingProfile.java @@ -141,7 +141,8 @@ public class plasmaSearchRankingProfile { e = elts[i].trim(); if ((s == 0) || (e.startsWith(prefix))) { p = e.indexOf("="); - if (e.length() > p + 1) coeff.put(e.substring(s, p), new Integer(Integer.parseInt(e.substring(p + 1)))); + if (p < 0) System.out.println("DEBUG: bug in plasmaSearchRankingProfile: e = " + e); + if ((p > 0) && (e.length() > p + 1)) coeff.put(e.substring(s, p), new Integer(Integer.parseInt(e.substring(p + 1)))); } } coeff_domlength = parseMap(coeff, DOMLENGTH, coeff_domlength);