Posted: Mon Oct 21, 2024 8:45 am
Bug in Girr export in RMDU (not RMIR):
To reproduce: Load an rmdu file in RMDU. Select File -> Export as Girr of IRScope File. In the GUI nothing happens. rmaster.err shows
It turns out that LeanedSignal.tmDecoder has not been initialized. This is done in LearnedSignal.getTmDecoder(), which is called in RMIRSetup, which is only called in RMIR, not in RMDU or RMPB, A possible fix is
I suspect this bug showed up in the JCommander transition.
To reproduce: Load an rmdu file in RMDU. Select File -> Export as Girr of IRScope File. In the GUI nothing happens. rmaster.err shows
Code: Select all
...
java.lang.NullPointerException: Cannot invoke "org.harctoolbox.irp.IrpDatabase.getNames()" because "irpDb" is null
at com.hifiremote.jp1.DeviceUpgradeExporter.getExecutorProtocolMap(DeviceUpgradeExporter.java:82)
at com.hifiremote.jp1.DeviceUpgradeExporter.getRemoteSet(DeviceUpgradeExporter.java:256)
at com.hifiremote.jp1.DeviceUpgradeExporter.exportToFile(DeviceUpgradeExporter.java:833)
...
Code: Select all
Index: src/main/java/com/hifiremote/jp1/RemoteMaster.java
===================================================================
--- src/main/java/com/hifiremote/jp1/RemoteMaster.java (revision 2075)
+++ src/main/java/com/hifiremote/jp1/RemoteMaster.java (working copy)
@@ -500,6 +500,7 @@
}
else
{
+ LearnedSignal.getTmDecoder();
KeyMapMaster km = new KeyMapMaster( properties );
if ( fileToOpen != null )
{