gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] branch master updated: fix condition


From: gnunet
Subject: [GNUnet-SVN] [libeufin] branch master updated: fix condition
Date: Mon, 07 Oct 2019 13:29:36 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 0509329  fix condition
0509329 is described below

commit 0509329ec0a60412089f91b358fbecd9af94976e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Oct 7 13:29:31 2019 +0200

    fix condition
---
 src/main/kotlin/tech/libeufin/XML.kt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/main/kotlin/tech/libeufin/XML.kt 
b/src/main/kotlin/tech/libeufin/XML.kt
index 98d582c..95b0aa9 100644
--- a/src/main/kotlin/tech/libeufin/XML.kt
+++ b/src/main/kotlin/tech/libeufin/XML.kt
@@ -54,7 +54,8 @@ class XML {
     private val bundle = {
         val classLoader = ClassLoader.getSystemClassLoader()
         val schemas = arrayOf(
-            StreamSource(classLoader.getResourceAsStream("ebics_hev.xsd"))
+            StreamSource(classLoader.getResourceAsStream("ebics_hev.xsd")),
+            
StreamSource(classLoader.getResourceAsStream("ebics_keymgmt_request_H004.xsd"))
         )
 
         try {
@@ -67,6 +68,13 @@ class XML {
     }()
     private val validator = bundle?.newValidator()
 
+    /**
+     * True if the object didn't initialize
+     */
+    fun isNull(): Boolean {
+        return (validator == null) || (bundle == null)
+    }
+
     /**
      * Parse string into XML DOM.
      * @param xmlString the string to parse.

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]