From 1562ef91a01b50d02ba40fcfa6dbf475012e2d53 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 22 Aug 2013 16:11:10 +0200 Subject: [PATCH] Fix exception. --- src/fr/devinsy/xidyn/presenters/URLPresenter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fr/devinsy/xidyn/presenters/URLPresenter.java b/src/fr/devinsy/xidyn/presenters/URLPresenter.java index 7e3325e..e37ae31 100644 --- a/src/fr/devinsy/xidyn/presenters/URLPresenter.java +++ b/src/fr/devinsy/xidyn/presenters/URLPresenter.java @@ -74,8 +74,7 @@ public class URLPresenter extends StringPresenter { String errorMessage = "source not defined"; logger.error(errorMessage); - result = null; - throw new Exception(errorMessage); + throw new NullPointerException(errorMessage); } else {