Cyberduck Mountain Duck CLI

Changeset 48260


Ignore:
Timestamp:
Nov 28, 2019 1:23:20 PM (3 months ago)
Author:
dkocher
Message:

Fix null pointer.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property subgit:lock:d7b9d8543e245b4897477c521ebf0559d233e6cd deleted
    • Property subgit:lock:e8ba9bcabab921938d5d857beb5789b1c602078a set to 2019-11-28T13:23:25.492
  • trunk/dracoon/src/main/java/ch/cyberduck/core/sds/SDSEncryptionBulkFeature.java

    r47702 r48260  
    2121import ch.cyberduck.core.PathAttributes;
    2222import ch.cyberduck.core.PathContainerService;
     23import ch.cyberduck.core.VersionId;
    2324import ch.cyberduck.core.exception.BackgroundException;
    2425import ch.cyberduck.core.features.Bulk;
     
    8788                            final Path container = new PathContainerService().getContainer(file);
    8889                            if(rooms.get(container)) {
    89                                 background.operate(session, callback, file.withAttributes(new PathAttributes(file.attributes()).withVersionId(
    90                                     entry.getValue().getVersion().id
    91                                 )));
     90                                final VersionId version = entry.getValue().getVersion();
     91                                if(null != version) {
     92                                    background.operate(session, callback, file.withAttributes(new PathAttributes(file.attributes()).withVersionId(version.id)));
     93                                }
    9294                            }
    9395                        }
Note: See TracChangeset for help on using the changeset viewer.
swiss made software