Index: mitkPicFileWriter.cpp =================================================================== --- mitkPicFileWriter.cpp (revision 25778) +++ mitkPicFileWriter.cpp (working copy) @@ -59,6 +59,12 @@ Image::Pointer input = const_cast(this->GetInput()); + if ( input.IsNull() ) + { + std::cout << "Nothing to write: Input is NULL." << std::endl; + return; + } + mitkIpPicDescriptor * picImage = input->GetPic(); SlicedGeometry3D* slicedGeometry = input->GetSlicedGeometry(); if (slicedGeometry != NULL)