tdf#149198 Fix use of nullptr
commit6f6d61ea5d7700fb18bfb49c6e1d16a55944e581
authorStephan Bergmann <sbergman@redhat.com>
Mon, 23 May 2022 08:08:08 +0000 (23 10:08 +0200)
committerXisco Fauli <xiscofauli@libreoffice.org>
Mon, 23 May 2022 19:24:45 +0000 (23 21:24 +0200)
tree896e9131edac283e4854e268eb20b675574ad492
parenta37577f9fd74c5f84ee7d24adca3755b6f26a55c
tdf#149198 Fix use of nullptr

...which would have caused std::abort for non-production debug builds since
4f0c70fb5554325e0cc2129741175bf07de22029 "Avoid calling OString ctor with null
pointer", and started to erroneously pass a nullptr argument into a
std::string_view for all kinds of builds with
af16aa625682b649e8843237652b9246d519cbae "Improve loplugin:stringview"

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134758
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit c8d4ae2ad0cfdac770d897e7aca72fbb4a87765f, plus
follow-up f546767b4e9bf3de288ea50336cf1e15f1ee7435 "tdf#149198 Fix previous
fix")

Change-Id: Iad4d1576ed651a74c0f8b2e8dee3c59f5214accd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134780
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
sw/source/filter/ww8/docxattributeoutput.cxx