summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-12 16:04:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-12 20:43:47 +0200
commita6c272bff62f6ec215a11c61fd319784299a12ba (patch)
treeb01baa5d19db2d089feb310d4fd51d82f9ae442a /wizards
parentf461f8eaa98544f8f1f0561f9110afbe973067c8 (diff)
ofz#1509303 DCN: Don't Catch NullPointer Exception
this is since: commit 8e63258a355d1b74fff89c39369e0ec72091e625 Date: Wed Jun 25 13:32:18 2008 +0000 INTEGRATION: CWS rptwizard01 (1.12.68); FILE MERGED 2008/05/21 10:14:32 lla 1.12.68.3: RESYNC: (1.12-1.13); FILE MERGED 2008/04/14 09:11:53 lla 1.12.68.2: #i86092# handle nullpointer, add TODO 2008/02/14 13:00:48 lla 1.12.68.1: #i86092# changes for new Report Wizard Change-Id: I6cb8938c311cf0432728ae06b08e16bffba39be3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139808 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/DBColumn.java16
1 files changed, 5 insertions, 11 deletions
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java
index 5ca1f56a8844..22fe7e657e37 100644
--- a/wizards/com/sun/star/wizards/report/DBColumn.java
+++ b/wizards/com/sun/star/wizards/report/DBColumn.java
@@ -152,17 +152,11 @@ public class DBColumn
XCell xCell;
getTableColumns(TableName);
- XTableRows xRows = null;
- try
- {
- xRows = xTextTable.getRows();
- }
- catch (java.lang.NullPointerException e)
- {
- e.printStackTrace();
-// TODO: handle the nullpointer right
-// return;
- }
+ if (xTextTable == null)
+ return;
+
+ XTableRows xRows = xTextTable.getRows();
+
for (int n = 0; n < xTableColumns.getCount(); n++)
{
for (int m = 0; m < xRows.getCount(); m++)