Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5519)

Unified Diff: chrome/browser/resources/bluetooth_internals/characteristic_list.js

Issue 2643393002: bluetooth: Remove queuing of GetCharacteristicsCallbacks (Closed)
Patch Set: Add comment explaining null/empty difference Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/bluetooth/device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/bluetooth_internals/characteristic_list.js
diff --git a/chrome/browser/resources/bluetooth_internals/characteristic_list.js b/chrome/browser/resources/bluetooth_internals/characteristic_list.js
index faa7f9d013b346557a03080c93f8d20791a70f47..7faecdeae781975a62d6ce0832217e8a5884e10a 100644
--- a/chrome/browser/resources/bluetooth_internals/characteristic_list.js
+++ b/chrome/browser/resources/bluetooth_internals/characteristic_list.js
@@ -182,7 +182,7 @@ cr.define('characteristic_list', function() {
device_broker.connectToDevice(deviceAddress).then(function(device) {
return device.getCharacteristics(serviceId);
}.bind(this)).then(function(response) {
- this.setData(new ArrayDataModel(response.characteristics));
+ this.setData(new ArrayDataModel(response.characteristics || []));
this.setLoading(false);
this.characteristicsRequested_ = false;
}.bind(this)).catch(function(error) {
« no previous file with comments | « no previous file | device/bluetooth/device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698