From 481e765ac687fe992adc7fd583dd13ecadef0b24 Mon Sep 17 00:00:00 2001 From: fjenett Date: Sat, 14 Apr 2012 16:09:06 +0000 Subject: [PATCH] fixed a bug in ModeContribution: looking for className was not stopped after it was found. added check and break on line 97 --- app/src/processing/app/contrib/ModeContribution.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/contrib/ModeContribution.java b/app/src/processing/app/contrib/ModeContribution.java index a7db4a2bd..26a13a2de 100644 --- a/app/src/processing/app/contrib/ModeContribution.java +++ b/app/src/processing/app/contrib/ModeContribution.java @@ -92,8 +92,9 @@ public class ModeContribution extends InstalledContribution { loader = new URLClassLoader(urlList); for (int j = 0; j < archives.length; j++) { - className = ToolContribution.findClassInZipFile(folder.getName(), - archives[j]); + className = ToolContribution.findClassInZipFile( folder.getName(), + archives[j] ); + if (className != null) break; } } catch (MalformedURLException e) { // Maybe log this