Commit e57e01ca authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Fix booksmarks when config section/option is missing.

parent 819a9c29
......@@ -32,8 +32,15 @@ var BookmarkContainer = Class.extend({
self.instance.alert("Can't read workspace.ini.");
} else {
// split into arrays
if (!data.content.Bookmarks ||
!data.content.Bookmarks.names ||
!data.content.Bookmarks.paths) {
self.names = [];
self.paths = [];
} else {
self.names = data.content.Bookmarks.names.split(":");
self.paths = data.content.Bookmarks.paths.split(":");
}
if (self.names.join() == "") {
self.names = [];
self.paths = [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment