From 9a53f26d601b3971479a626d0752056be55cf702 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Mon, 23 Mar 2015 09:12:37 +0100
Subject: [PATCH] stax2-api

---
 src/main/java/com/ctc/wstx/sr/InputElementStack.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/ctc/wstx/sr/InputElementStack.java b/src/main/java/com/ctc/wstx/sr/InputElementStack.java
index 4aa355c..d657f40 100644
--- a/src/main/java/com/ctc/wstx/sr/InputElementStack.java
+++ b/src/main/java/com/ctc/wstx/sr/InputElementStack.java
@@ -857,9 +857,13 @@ public final class InputElementStack
      */
     @Override
     public int addDefaultAttribute(String localName, String uri, String prefix,
-                                   String value) throws XMLStreamException
+                                   String value)
     {
-        return mAttrCollector.addDefaultAttribute(localName, uri, prefix, value);
+        try {
+            return mAttrCollector.addDefaultAttribute(localName, uri, prefix, value);
+        } catch (XMLStreamException e) {
+            throw new RuntimeException(e);
+        }
     }
 
     /*
-- 
2.7.4

