Skip to content

Commit 71bb0cf

Browse files
committed
ios/android: fixed database loading failing when one node doesn't have any depth or scan (#1147).
1 parent 948e15c commit 71bb0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/android/jni/RTABMapApp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ int RTABMapApp::openDatabase(const std::string & databasePath, bool databaseInMe
649649
UWARN("Cloud %d is empty", id);
650650
}
651651
}
652-
else
652+
else if(!data.depthOrRightCompressed().empty() || !data.laserScanCompressed().isEmpty())
653653
{
654-
UERROR("Failed to uncompress data!");
654+
UERROR("Failed to uncompress data! (rgb=%d, depth=%d, scan=%d)", data.imageCompressed().cols, data.depthOrRightCompressed().cols, data.laserScanCompressed().size());
655655
status=-2;
656656
}
657657
}

0 commit comments

Comments
 (0)