diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-27 10:15:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-27 12:46:16 +0200 |
commit | 45e54afffa40c1f2bf3c98a3229a2137c050c0fc (patch) | |
tree | 50537d132a59246b08ab708b4b9bf94eff21b658 /qadevOOo | |
parent | 995ae3dc84a9c220b62086664c8ad4a161401cc7 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/i18n/_XTransliteration.java | 14 |
1 files changed, 2 insertions, 12 deletions
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" ); |