From 28b73e024835240f22f7b19f7d0d1ea20f2ffb4f Mon Sep 17 00:00:00 2001 From: Alessandro Iannacci Date: Wed, 24 Jun 2015 11:38:35 +0200 Subject: [PATCH] Issue #384 solved - Excel reader problem with pagebreaks: nullreference Excel reader problem with pagebreaks: nullreference --- ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk | 42 +++++++++++++++------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk index 3037956..43568bd 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_READER_2007.slnk @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -3635,6 +3635,7 @@ ENDMETHOD. * Build table to identify these cells *--------------------------------------------------------------------* lo_node ?= io_ixml_worksheet->find_from_name( 'rowBreaks' ). + check lo_node is bound. lo_ixml_rowbreaks = lo_node->get_elements_by_tag_name( name = 'brk' ). lo_ixml_iterator = lo_ixml_rowbreaks->create_iterator( ). lo_ixml_rowbreak ?= lo_ixml_iterator->get_next( ). @@ -3647,6 +3648,7 @@ ENDMETHOD. CHECK <ls_pagebreak_row> IS ASSIGNED. lo_node ?= io_ixml_worksheet->find_from_name( 'colBreaks' ). + check lo_node is bound. lo_ixml_colbreaks = lo_node->get_elements_by_tag_name( name = 'brk' ). lo_ixml_iterator = lo_ixml_colbreaks->create_iterator( ). lo_ixml_colbreak ?= lo_ixml_iterator->get_next( ).