qadevOOo/tests/java/ifc/i18n/_XTransliteration.java |   14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

New commits:
commit 45e54afffa40c1f2bf3c98a3229a2137c050c0fc
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Aug 27 10:15:07 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Aug 27 12:46:16 2022 +0200

    cid#1509234 DCN: Don't Catch NullPointer Exception
    
    and
    
    cid#1509229 DCN: Don't Catch NullPointer Exception
    
    Change-Id: I113de964ff07fc771ac64acb8583341cd518d0e6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138921
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java 
b/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java
index eff58351f20e..49ee580d3b32 100644
--- a/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java
+++ b/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java
@@ -321,12 +321,7 @@ public class _XTransliteration extends MultiMethodTest {
 
         boolean ret = true ;
 
-        int res = -666 ;
-        try {
-            res = oObj.compareSubstring(str1, p1, len1, str2, p2, len2);
-        } catch (NullPointerException e) {
-            log.println("Exception while method calling occurs :" + e);
-        }
+        int res = oObj.compareSubstring(str1, p1, len1, str2, p2, len2);
 
         if (res != expRes) {
             log.print("Comparing FAILED; return: " + res + ", expected: " +
@@ -402,12 +397,7 @@ public class _XTransliteration extends MultiMethodTest {
 
         boolean ret = true ;
 
-        int res = -666 ;
-        try {
-            res = oObj.compareString(str1, str2);
-        } catch (NullPointerException e) {
-            log.println("Exception while method calling occurs :" + e);
-        }
+        int res = oObj.compareString(str1, str2);
 
         if (res == expRes) {
             log.println("Comparing of '" + str1 + "' and '" + str2 + "' OK" );

Reply via email to