Skip to content

Commit 80af615

Browse files
AndroidWearプラグインで必要のないチェックをしないようにした
## 更新内容 * AndroidWearプラグインで必要のないチェックをしないようにした
1 parent b66b7fb commit 80af615

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • dConnectDevicePlugin/dConnectDeviceAndroidWear/app/src/main/java/org/deviceconnect/android/deviceplugin/wear

dConnectDevicePlugin/dConnectDeviceAndroidWear/app/src/main/java/org/deviceconnect/android/deviceplugin/wear/WearManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public void init() {
9898
getNodes(new OnNodeResultListener() {
9999
@Override
100100
public void onResult(final List<Node> results) {
101+
if (results == null) {
102+
return;
103+
}
101104
synchronized (mNodeCache) {
102105
for (Node node : results) {
103106
if (!mNodeCache.containsKey(node.getId())) {
@@ -121,6 +124,9 @@ public void run() {
121124
getNodes(new OnNodeResultListener() {
122125
@Override
123126
public void onResult(final List<Node> results) {
127+
if (results == null) {
128+
return;
129+
}
124130
synchronized (mNodeCache) {
125131
for (Node node : results) {
126132
if (!mNodeCache.containsKey(node.getId())) {

0 commit comments

Comments
 (0)