[openrtm-commit:01774] r777 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 2月 27日 (土) 11:17:44 JST
Author: win-ei
Date: 2016-02-27 11:17:44 +0900 (Sat, 27 Feb 2016)
New Revision: 777
Modified:
trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/RTShellUtil.java
Log:
Fixed bugs.
Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/RTShellUtil.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/RTShellUtil.java 2016-02-27 02:17:08 UTC (rev 776)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/util/RTShellUtil.java 2016-02-27 02:17:44 UTC (rev 777)
@@ -92,13 +92,13 @@
return true;
}
catch (Exception ex) {
- return true;
+ return false;
}
}
/**
*
* {@.ja RTCがデフォルトの実行コンテキストでalive状態かを判定する}
- * {@.en Confirm whether RTC is the alive state}
+ * {@.en Confirms the existence of EC of RTC.}
*
* @param rtc
* {@.ja RTコンポーネント}
@@ -110,6 +110,9 @@
*
*/
public static boolean is_alive_in_default_ec(RTObject rtc){
+ if(rtc==null) {
+ return false;
+ }
ExecutionContext ec = get_actual_ec(rtc);
if(ec==null){
return false;
More information about the openrtm-commit
mailing list