Bug 62037 - SlideNames should not be null but have a default as if accessed by VBA
Summary: SlideNames should not be null but have a default as if accessed by VBA
Alias: None
Product: POI
Classification: Unclassified
Component: SL Common (show other bugs)
Version: 3.17-FINAL
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2018-01-23 17:44 UTC by Wolfgang Fahl
Modified: 2018-05-17 11:45 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
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.