From 3158f6fde4cdeb452db72caf6fb5a6560c7937c7 Mon Sep 17 00:00:00 2001 From: "Schwede, Robert" Date: Tue, 20 Aug 2024 15:37:41 +0200 Subject: [PATCH] fix null pointer exception --- libwarpaffine/main.cpp | 2 -- libwarpaffine/sliceswriter/SlicesWriterTbb.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libwarpaffine/main.cpp b/libwarpaffine/main.cpp index 8014cbf..d725945 100644 --- a/libwarpaffine/main.cpp +++ b/libwarpaffine/main.cpp @@ -536,9 +536,7 @@ int libmain(int argc, char** _argv) doWarp.DoOperation(); WaitUntilDone(app_context, doWarp); -std::cout<<"aaa"<EnumerateAttachments([&writer, &reader](int index, const libCZI::AttachmentInfo& info){writer->AddAttachment(reader->ReadAttachment(index)); return true;}); -std::cout<<"xxx"<GetRawData(&size).get(); ai.dataSize = size; - std::cout<<"adding attachment"<GetAttachmentInfo().contentFileType); ai.contentGuid = attachment->GetAttachmentInfo().contentGuid; this->writer_->SyncAddAttachment(ai); @@ -261,7 +260,7 @@ std::uint32_t CziSlicesWriterTbb::GetNumberOfPendingSliceWriteOperations() void CziSlicesWriterTbb::CopyMetadata(libCZI::IXmlNodeRead* rootSource, libCZI::IXmlNodeRw* rootDestination) { // what we do here is to simple copy the values of those nodes from the source to the destination - static constexpr array paths_to_copy = + static constexpr array paths_to_copy = { "Metadata/Information/Image/SizeX", "Metadata/Information/Image/SizeY",