[FIX] NPE в LauncherUpdateController

This commit is contained in:
Gravit 2019-05-21 01:41:41 +07:00
parent 6e02b80b50
commit dc7e075789

View file

@ -92,7 +92,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
}
public Path tryFind(NewLauncherSettings.HashedStoreEntry en, HashedFile file) throws IOException
{
AtomicReference<Path> ret = null;
AtomicReference<Path> ret = new AtomicReference<>(null);
en.hdir.walk(File.separator, (path, name, entry) -> {
if(entry.getType() == HashedEntry.Type.DIR) return HashedDir.WalkAction.CONTINUE;
HashedFile tfile = (HashedFile) entry;