wizards/com/sun/star/wizards/report/DBColumn.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-)
New commits: commit a6c272bff62f6ec215a11c61fd319784299a12ba Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Sep 12 16:04:13 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Sep 12 20:43:47 2022 +0200 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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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++)