When selecting a folder instead of files and "Sync selected files" is run - NPE is thrown. This fixes the problem.