You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DatasetService::getLastUploadForDataset throws NPE if there were no uploads yet #1085
As said in the name, DatasetService::getLastUploadForDataset throws NullPointerException in case no loads were performed yet.
The code tries to check if lastUploadUri is not empty
isEmpty(dataSet.getLastUploadUri())
but getLastUploadUri method actually returns lastUpload.uri of Dataset class. So when there were no uploads at all, lastUpload field is null and lastUpload.uri throws NPE
Activity
[-]DatasetSEr[/-][+]DatasetService::getLastUploadForDataset throws NPE if there were no uploads yet[/+]