chart2/source/tools/AxisHelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1ada0279f73947984584b77d99ba1e0718d38988
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Apr 15 11:20:18 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Apr 15 13:27:56 2025 +0200

    fix crash in JunitTest_chart2_unoapi
    
    fix crash seen on jenkins, likely as a result of
    
        commit eeb8ca44ac7994c0552749e190a193a44c956769
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Fri Apr 4 10:02:06 2025 +0200
        tdf#147874 slow sheet switching with large chart2 (2)
    
    Change-Id: Ic3c58080cfd9a8dd36fe980ef36ac38e3890b069
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184207
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/chart2/source/tools/AxisHelper.cxx 
b/chart2/source/tools/AxisHelper.cxx
index 33cd6059fe93..4e550e9add2e 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -111,7 +111,7 @@ chart2::ScaleData AxisHelper::getDateCheckedScale( const 
rtl::Reference< Axis >&
     }
     if( aScale.AxisType == AxisType::DATE )
     {
-        if( !xCooSys->getExplicitCategoriesProvider(rModel).isDateAxis() )
+        if( !xCooSys || 
!xCooSys->getExplicitCategoriesProvider(rModel).isDateAxis() )
             aScale.AxisType = AxisType::CATEGORY;
     }
     return aScale;

Reply via email to