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
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
The text was updated successfully, but these errors were encountered:
leostep
changed the title
DatasetSEr
DatasetService::getLastUploadForDataset throws NPE if there were no uploads yet
Sep 23, 2021
As said in the name,
DatasetService::getLastUploadForDataset
throwsNullPointerException
in case no loads were performed yet.The code tries to check if
lastUploadUri
is not emptybut
getLastUploadUri
method actually returnslastUpload.uri
ofDataset
class. So when there were no uploads at all,lastUpload
field isnull
andlastUpload.uri
throws NPEThe text was updated successfully, but these errors were encountered: