タイニー番組ナビゲータ本体
リビジョン | 71a7f0351c842a2b0b21b7f55effc5a8cbbdef23 (tree) |
---|---|
日時 | 2022-05-09 00:44:05 |
作者 | Masahiko Kimura <mkimura@u01....> |
コミッター | Masahiko Kimura |
「現在放送中」ノードで「放送局別1週おき表示」すると例外終了する問題の対応
@@ -2603,6 +2603,8 @@ public abstract class AbsPaperView extends JPanel implements TickTimerListener,H | ||
2603 | 2603 | String dateMax = CommonUtils.getDate(ct); |
2604 | 2604 | |
2605 | 2605 | ct = CommonUtils.getCalendar(startDate); |
2606 | + if (ct == null) | |
2607 | + return false; | |
2606 | 2608 | ct.add(GregorianCalendar.DAY_OF_MONTH, env.getDatePerPassedPage()*this.byCenterModeDayInterval); |
2607 | 2609 | String date = CommonUtils.getDate(ct); |
2608 | 2610 |
@@ -3282,7 +3284,11 @@ public abstract class AbsPaperView extends JPanel implements TickTimerListener,H | ||
3282 | 3284 | byCenterModeDayInterval = 7; |
3283 | 3285 | |
3284 | 3286 | // 過去ログノードの場合、選択されているノードを開始日とする |
3285 | - startDate = value; | |
3287 | + GregorianCalendar c = CommonUtils.getCalendar(value); | |
3288 | + if (c != null) | |
3289 | + startDate = value; | |
3290 | + else | |
3291 | + startDate = CommonUtils.getDate529(0, true); | |
3286 | 3292 | |
3287 | 3293 | jLabel_tree.setView(JTreeLabel.Nodes.BCAST, center); |
3288 | 3294 | reselectTree(); |