File tree 2 files changed +5
-2
lines changed
main/java/mediathek/tool/ttml
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,10 @@ private void buildFilmList() throws Exception {
237
237
final StyledString textContent = new StyledString ();
238
238
textContent .setText (node .getTextContent ());
239
239
240
- final List <String > colors = colorMap .get (styleNode .getNodeValue ());
240
+ final List <String > colors =
241
+ (styleNode != null && colorMap .containsKey (styleNode .getNodeValue ()))
242
+ ? colorMap .get (styleNode .getNodeValue ())
243
+ : null ;
241
244
if (colors == null ) {
242
245
textContent .setColor (color ); // gabs beim BR
243
246
textContent .setBackgroundColor (backgroundColor );
Original file line number Diff line number Diff line change 63
63
<tt:span style="textYellow">dann machen die Leute das leider.</tt:span>
64
64
</tt:p>
65
65
<tt:p xml:id="sub8" region="bottom" begin="00:00:35.834" end="00:00:38.394">
66
- <tt:span style="textWhite" >Oft geht es gleich</tt:span>
66
+ <tt:span>Oft geht es gleich</tt:span>
67
67
<tt:br/>
68
68
<tt:span style="textWhite">um mehrere Tausend Euro.</tt:span>
69
69
</tt:p>
You can’t perform that action at this time.
0 commit comments