Bug 62037

Summary: SlideNames should not be null but have a default as if accessed by VBA
Product: POI Reporter: Wolfgang Fahl <wf>
Component: SL CommonAssignee: POI Developers List <dev>
Severity: normal CC: wf
Priority: P2    
Version: 3.17-FINAL   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Wolfgang Fahl 2018-01-23 17:44:08 UTC
see https://stackoverflow.com/a/44189210/1497139

To get a slide ename I currently use

    CTSlide ctSlide = slide.getXmlObject();
    String name=ctSlide.getCSld().getName();

which might return null.


never returns null but has a default slideName 

It would be great if the XSLF API would return the slide name in a compatible manner.

My usecase is that I have slideshows in different language that I need to keep "synchronized". If a slide is added in one slideshow I need to know that the translation in another slideshow is accurate. Since the titles are translated i can not go by title. Going by the position in the slideshow is also a bad idea. Since the slideshows are initially copied from a master language the names are a good starting point. Eventually the names are modified by the authors but not always so a default name would be very helpful here.
Comment 1 Andreas Beeker 2018-05-16 21:59:02 UTC
There's a new Slide.getSlideName() method applied via r1831745
Comment 2 Wolfgang Fahl 2018-05-17 11:45:31 UTC
Thx. That is very useful. I'll try it out.