• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

タイニー番組ナビゲータ本体


Commit MetaInfo

修订版71a7f0351c842a2b0b21b7f55effc5a8cbbdef23 (tree)
时间2022-05-09 00:44:05
作者Masahiko Kimura <mkimura@u01....>
CommiterMasahiko Kimura

Log Message

「現在放送中」ノードで「放送局別1週おき表示」すると例外終了する問題の対応

更改概述

差异

--- a/TinyBannavi/src/tainavi/AbsPaperView.java
+++ b/TinyBannavi/src/tainavi/AbsPaperView.java
@@ -2603,6 +2603,8 @@ public abstract class AbsPaperView extends JPanel implements TickTimerListener,H
26032603 String dateMax = CommonUtils.getDate(ct);
26042604
26052605 ct = CommonUtils.getCalendar(startDate);
2606+ if (ct == null)
2607+ return false;
26062608 ct.add(GregorianCalendar.DAY_OF_MONTH, env.getDatePerPassedPage()*this.byCenterModeDayInterval);
26072609 String date = CommonUtils.getDate(ct);
26082610
@@ -3282,7 +3284,11 @@ public abstract class AbsPaperView extends JPanel implements TickTimerListener,H
32823284 byCenterModeDayInterval = 7;
32833285
32843286 // 過去ログノードの場合、選択されているノードを開始日とする
3285- startDate = value;
3287+ GregorianCalendar c = CommonUtils.getCalendar(value);
3288+ if (c != null)
3289+ startDate = value;
3290+ else
3291+ startDate = CommonUtils.getDate529(0, true);
32863292
32873293 jLabel_tree.setView(JTreeLabel.Nodes.BCAST, center);
32883294 reselectTree();