Created attachment 36060 [details] Stacktrace of reported error I am having a Slide Show with 1 Slides, containing exactly one picture shape pointing to one EMF embedded into the slide. In code, I duplicate the slide n times, and then try to "replace" that picture shape by creating a new picture shape with the same dimensions and removing the old picture shape. POI then crashes on the second call to org.apache.poi.xslf.usermodel.XSLFSheet.removePictureRelation(XSLFSheet.java:649) See full stack trace attached.
Created attachment 36087 [details] JUnit causing the problem / workaround Find attached a short test case and a workaround The error is based on missing relationships across slides
Fix via r1837839