OpenRTM / OpenRTM-aist-Python

OpenRTM-aist: RT-Middleware and OMG RTC implementation in Python implemented by AIST
Other
2 stars 7 forks source link

rtc.confのバックスラッシュの後にスペースがある場合、urlparam2mapで空白のパラメータがある場合に設定を無視する #271

Open Nobu19800 opened 2 years ago

Nobu19800 commented 2 years ago

Identify the Bug

rtc.confで改行する場合のバックスラッシュの後にスペースがある場合に以下のエラーが発生する。

  File "C:\Python37\lib\site-packages\OpenRTM_aist\Properties.py", line 390, in getProperty
    node = self._getNode(keys, 0, self)
  File "C:\Python37\lib\site-packages\OpenRTM_aist\Properties.py", line 1224, in _getNode
    next = curr.hasKey(keys[index])
IndexError: list index out of range
manager.components.preconnect: ConsoleIn0.out?port=ConsoleOut0.in& \ <-ここにスペースがある
                                                    dataflow_type=push&interface_type=corba_cdr

またurlparam2map関数でパラメータが空白の場合にも同様のエラーが発生する。

manager.components.preconnect: ConsoleIn0.out?port=ConsoleOut0.in& \ 
                                                    dataflow_type=push&interface_type=corba_cdr&<-&だけ記述してパラメータを空白にする。

Description of the Change

Verification