Skip to content
Snippets Groups Projects
Commit dedd46c7 authored by fkiefer's avatar fkiefer
Browse files

OO-2454 Upgrader 11_3_0 fixes 2

parent b715176b
No related branches found
No related tags found
No related merge requests found
......@@ -523,7 +523,7 @@ public class VideoManagerImpl implements VideoManager {
public boolean hasMasterContainer (OLATResource videoResource) {
VFSContainer baseContainer = FileResourceManager.getInstance().getFileResourceRootImpl(videoResource);
VFSContainer masterContainer = (VFSContainer) baseContainer.resolve(DIRNAME_MASTER);
return masterContainer != null;
return masterContainer != null & masterContainer.exists();
}
@Override
......@@ -875,16 +875,9 @@ public class VideoManagerImpl implements VideoManager {
@Override
public boolean hasVideoFile(OLATResource videoResource) {
try {
if (getVideoFile(videoResource) == null) {
return false;
} else {
return true;
}
} catch (Exception e) {
log.error("",e);
return false;
}
VFSContainer masterContainer = getMasterContainer(videoResource);
LocalFileImpl videoFile = (LocalFileImpl) masterContainer.resolve(FILENAME_VIDEO_MP4);
return videoFile != null & videoFile.exists();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment