• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Revision133036ab8a7b9daaf24672798967e0ffdd9060f8 (tree)
Time2018-08-12 23:03:36
AuthorMasahiko Kimura <mkimura@u01....>
CommiterMasahiko Kimura

Log Message

1.6.7 (2018/8/12):
1. [タイトル一覧]RD-X8でタブをクリックすると異常終了する問題の対応

Change Summary

Incremental Difference

--- a/TinyBannavi/src/tainavi/AbsTitleListView.java
+++ b/TinyBannavi/src/tainavi/AbsTitleListView.java
@@ -438,7 +438,13 @@ public abstract class AbsTitleListView extends JPanel {
438438
439439 titleUpdating = true;
440440 String device_id = getSelectedDeviceId();
441+ if (device_id == null)
442+ return;
443+
441444 String device_name = rec.getDeviceName(device_id);
445+ if (device_name == null)
446+ return;
447+
442448 String folder_name = getSelectedFolderName();
443449
444450 if (force){
@@ -465,9 +471,8 @@ public abstract class AbsTitleListView extends JPanel {
465471 updateDeviceInfoLabel();
466472 }
467473
468- if (titles){
469- String devId = getSelectedDeviceId();
470-
474+ String devId = getSelectedDeviceId();
475+ if (titles && devId != null){
471476 StWin.appendMessage(MSGID+"レコーダからタイトル一覧を取得します(force=" + String.valueOf(force) + ",details=" + String.valueOf(details) + "):"+devId);
472477 if (rec.GetRdTitles(devId, force, details, devId.equals(HDDRecorder.DEVICE_ALL))){
473478 MWin.appendMessage(MSGID+"レコーダからタイトル一覧が正常に取得できました:"+devId);
@@ -521,9 +526,8 @@ public abstract class AbsTitleListView extends JPanel {
521526 updateDeviceInfoLabel();
522527 }
523528
524- if (titles){
525- String devId = getSelectedDeviceId();
526-
529+ String devId = getSelectedDeviceId();
530+ if (titles && devId != null){
527531 StWin.appendMessage(MSGID+"レコーダからタイトル一覧を取得します(force=" + String.valueOf(force) + ",details=" + String.valueOf(details) + "):"+devId);
528532 if (rec.GetRdTitles(devId, force, details, devId.equals(HDDRecorder.DEVICE_ALL))){
529533 // MWin.appendMessage(MSGID+"レコーダからタイトル一覧が正常に取得できました:"+devId);
@@ -583,7 +587,8 @@ public abstract class AbsTitleListView extends JPanel {
583587 no++;
584588 }
585589
586- combo.setSelectedIndex(idx);
590+ if (no > 0)
591+ combo.setSelectedIndex(idx);
587592 combo.setEnabled( combo.getItemCount() > 0 );
588593 deviceUpdating = false;
589594 }
@@ -599,7 +604,7 @@ public abstract class AbsTitleListView extends JPanel {
599604 String s = "残量(DR):";
600605
601606 String device_id = getSelectedDeviceId();
602- DeviceInfo info = rec.GetRDDeviceInfo(device_id);
607+ DeviceInfo info = device_id != null ? rec.GetRDDeviceInfo(device_id) : null;
603608 if (info != null){
604609 int allsize = info.getAllSize();
605610 int freesize = info.getFreeSize();
@@ -622,7 +627,9 @@ public abstract class AbsTitleListView extends JPanel {
622627 return;
623628
624629 String device_id = getSelectedDeviceId();
625- String device_name = "[" + rec.getDeviceName(device_id) + "]";
630+ String device_name = device_id != null ? rec.getDeviceName(device_id) : null;
631+ if (device_name != null)
632+ device_name = "[" + device_name + "]";
626633
627634 JComboBoxPanel combo = jCBXPanel_folder;
628635 ArrayList<TextValueSet> tvs = rec.getFolderList();
@@ -640,7 +647,8 @@ public abstract class AbsTitleListView extends JPanel {
640647 no++;
641648 }
642649
643- combo.setSelectedIndex(idx);
650+ if (no > 0)
651+ combo.setSelectedIndex(idx);
644652 combo.setEnabled( combo.getItemCount() > 0 );
645653 }
646654
@@ -791,7 +799,7 @@ public abstract class AbsTitleListView extends JPanel {
791799 return;
792800
793801 String folder_name = getSelectedFolderName();
794- String folder_id = text2value(rec.getFolderList(), folder_name);
802+ String folder_id = folder_name != null ? text2value(rec.getFolderList(), folder_name) : "";
795803
796804 // ジャンルが選択されている場合、そのジャンルに属するタイトル以外はスキップする
797805 String genre_name = (String)jCBXPanel_genre.getSelectedItem();
@@ -990,7 +998,7 @@ public abstract class AbsTitleListView extends JPanel {
990998
991999 HDDRecorder rec = getSelectedRecorder();
9921000 String folder_name = getSelectedFolderName();
993- String folder_id = text2value(rec.getFolderList(), folder_name);
1001+ String folder_id = folder_name != null ? text2value(rec.getFolderList(), folder_name) : "";
9941002
9951003 editFolderName(folder_id, folder_name);
9961004 }
@@ -1075,6 +1083,9 @@ public abstract class AbsTitleListView extends JPanel {
10751083 HDDRecorder rec = getSelectedRecorder();
10761084
10771085 String folder_name = getSelectedFolderName();
1086+ if (folder_name == null)
1087+ return;
1088+
10781089 Matcher ma = Pattern.compile("^\\[(.*)\\] (.*)$").matcher(folder_name);
10791090 final String device_name = ma.find() ? ma.group(1) : "";
10801091 final String device_id = rec.getDeviceID(device_name);
--- a/TinyBannavi/src/tainavi/VersionInfo.java
+++ b/TinyBannavi/src/tainavi/VersionInfo.java
@@ -5,7 +5,7 @@ import java.util.regex.Pattern;
55
66
77 public class VersionInfo {
8- private static final String Version = "タイニー番組ナビゲータ for DBR-T2007 3.22.18β+1.6.6";
8+ private static final String Version = "タイニー番組ナビゲータ for DBR-T2007 3.22.18β+1.6.7";
99
1010 private static final String OSname = System.getProperty("os.name");
1111 private static final String OSvers = System.getProperty("os.version");