diff --git a/libIRDB/test/split_eh_frame.cpp b/libIRDB/test/split_eh_frame.cpp
index 276550f43cdfe6ad9647664d85c7ac8da841593f..2e6e132b88ec64f96c0ed82bce94736209a1310b 100644
--- a/libIRDB/test/split_eh_frame.cpp
+++ b/libIRDB/test/split_eh_frame.cpp
@@ -1994,6 +1994,8 @@ class split_eh_frame_impl_t : public split_eh_frame_t
 
 		auto remove_scoop=[&] (DataScoop_t* s) -> void 
 		{ 
+			if(s==NULL)
+				return;
 			firp->GetDataScoops().erase(s);
 			remove_address(s->GetStart());
 			remove_address(s->GetEnd());