fix (silent) javascript error when trying clipboard actions in sharing

This commit is contained in:
Ralf Becker 2017-11-02 13:47:25 +01:00
parent 3689b3d645
commit 138afa94fb

View File

@ -933,7 +933,7 @@ app.classes.filemanager = AppJS.extend(
// Target will be missing ID if directory is empty
// so start with the current directory
var parent = _action;
var nm = _target.manager.data.nextmatch;
var nm = _target ? _target.manager.data.nextmatch : null;
while(!nm && parent.parent)
{
parent = parent.parent;