streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sblack...@apache.org
Subject git commit: addresses failing test in streams-processor-urls
Date Wed, 17 Sep 2014 22:23:45 GMT
Repository: incubator-streams
Updated Branches:
  refs/heads/master b4d71241b -> dc5e7de3c


addresses failing test in streams-processor-urls


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/dc5e7de3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/dc5e7de3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/dc5e7de3

Branch: refs/heads/master
Commit: dc5e7de3c5c2e2fe905928785aaf9b059df34747
Parents: b4d7124
Author: sblackmon <sblackmon@apache.org>
Authored: Wed Sep 17 16:58:50 2014 -0500
Committer: sblackmon <sblackmon@apache.org>
Committed: Wed Sep 17 16:58:50 2014 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/streams/urls/LinkResolver.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/dc5e7de3/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/LinkResolver.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/LinkResolver.java
b/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/LinkResolver.java
index 2f7646b..5497b92 100644
--- a/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/LinkResolver.java
+++ b/streams-contrib/streams-processor-urls/src/main/java/org/apache/streams/urls/LinkResolver.java
@@ -372,6 +372,12 @@ public class LinkResolver implements Serializable {
         } catch (UnsupportedEncodingException uee) {
             System.err.println("Unable to Decode URL. Decoding skipped.");
             uee.printStackTrace();
+        } catch (NullPointerException npe) {
+            System.err.println("NPE Decoding URL. Decoding skipped.");
+            npe.printStackTrace();
+        } catch (Throwable e) {
+            System.err.println("Misc error Decoding URL. Decoding skipped.");
+            e.printStackTrace();
         }
 
         // Remove the protocol, http:// ftp:// or similar from the front


Mime
View raw message