[gnome-ostree] snapshot: Deal with potential missing items in the manifest
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] snapshot: Deal with potential missing items in the manifest
- Date: Sun, 16 Jun 2013 02:57:12 +0000 (UTC)
commit cb88b1a2364346fed0478c0a4f8a5285610b148a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Jun 15 22:32:05 2013 -0400
snapshot: Deal with potential missing items in the manifest
src/js/snapshot.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/js/snapshot.js b/src/js/snapshot.js
index 136e39a..ec57e0e 100644
--- a/src/js/snapshot.js
+++ b/src/js/snapshot.js
@@ -88,6 +88,9 @@ const Snapshot = new Lang.Class({
},
_resolveComponent: function(manifest, componentMeta) {
+ if (!componentMeta)
+ return {};
+
let result = {};
Lang.copyProperties(componentMeta, result);
let origSrc = componentMeta['src'];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]