diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-26 08:40:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-26 12:32:21 +0200 |
commit | f3ee5a0d2ee88bcde84cdb43e9b22bbc6c0be1af (patch) | |
tree | d47633a4e7faa9ccc8a6735558cd4434346363d3 /qadevOOo/tests/java/mod | |
parent | 916848d877a788d02e2e7c980872314839101798 (diff) |
cid#1509239 DCN: Don't Catch NullPointer Exception
and
cid#1509234 DCN: Don't Catch NullPointer Exception
cid#1509229 DCN: Don't Catch NullPointer Exception
cid#1509219 DCN: Don't Catch NullPointer Exception
cid#1509216 DCN: Don't Catch NullPointer Exception
Change-Id: Iab1512b4e5ecd632104a58b1fc09ef150825f498
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138859
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java index 436901258d98..e0591afc2566 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java @@ -149,8 +149,6 @@ public class ScTableSheetObj extends TestCase { log.println("Couldn't close document"); } catch (com.sun.star.lang.DisposedException e) { log.println("Document already disposed"); - } catch (NullPointerException e) { - log.println("Couldn't get XCloseable"); } util.utils.pause(500); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java index 8e694058b9a3..64de47ec088a 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java @@ -125,8 +125,6 @@ public class AccessibleTabBar extends TestCase { closer.close(true); } catch (com.sun.star.util.CloseVetoException e) { log.println("Couldn't close document " + e.getMessage()); - } catch (NullPointerException e) { - log.println("Couldn't close document " + e.getMessage()); } } -}
\ No newline at end of file +} |