Commit 14a31baf authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

views/main: fixed handling of falsy non-string labels

parent 0d47cf2b
......@@ -382,7 +382,7 @@ define([
* :param Bool isPath: Wether the label ist to be interpreted as a path.
setLabel: function setLabel(label, isPath) {
var split = label.split("/");
var split = (label || "").split("/");
var path = label;
if (isPath && split.length>1 && this.isManaged()) {
var peers = this.master.instances;
Markdown is supported
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