Skip to content

Commit b9eed3a

Browse files
Merge pull request #639 from TakayukiHoshi1984/modify_wear_os_node
AndroidWearプラグインで必要のないチェックをしないようにした
2 parents b66b7fb + 80af615 commit b9eed3a

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)