Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ public Map<Long, String> getObjectPathsByIds(Set<Long> objectIds){
Long ownerId;
if (result[0] != null) {
try {
objectId = ((Integer) result[0]).longValue();
objectId = ((Number) result[0]).longValue();
} catch (Exception ex) {
logger.warning("OBJECT PATH: could not cast result[0] (dvobject id) to Integer!");
logger.warning("OBJECT PATH: could not cast result[0] (dvobject id) to Number!");
objectId = null;
}
if (objectId == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,17 @@ private void findDataverseIdsForFiles(){
// -------------------------------------
// (3) Process the results -- the parent ID is the Dataverse that we're interested in
// -------------------------------------
Integer dvIdAsInteger;
Long dvId;
String dtype;
Long parentId;

// -------------------------------------
// Iterate through object list
// -------------------------------------
for (Object[] ra : results) {
dvIdAsInteger = (Integer)ra[0]; // ?? Why, should be a Long
dvId = new Long(dvIdAsInteger);
dvId = ((Number)ra[0]).longValue();
dtype = (String)ra[1];
parentId = (Long)ra[2];
parentId = ((Number)ra[2]).longValue();

//msg("result: dvId: " + dvId + " |dtype: " + dtype + " |parentId: " + parentId);
// Should ALWAYS be a Dataset!
Expand Down
Loading