Skip to content

Commit

Permalink
null pointer exception in autopilot and object navigation fragment (#460
Browse files Browse the repository at this point in the history
)
  • Loading branch information
isha382 authored Jan 19, 2025
1 parent 445dc29 commit 381149d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ private void updateCropImageInfo() {

binding.trackingOverlay.addCallback(
canvas -> {
tracker.draw(canvas);
// tracker.drawDebug(canvas);
if (tracker != null) {
tracker.draw(canvas);
}
});
tracker.setFrameConfiguration(
getMaxAnalyseImageSize().getWidth(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,10 @@ private void updateCropImageInfo() {

binding.trackingOverlay.addCallback(
canvas -> {
tracker.draw(canvas);
// tracker.drawDebug(canvas);
if (tracker != null) {
tracker.draw(canvas);
}
//tracker.drawDebug(canvas);
});
tracker.setFrameConfiguration(
getMaxAnalyseImageSize().getWidth(),
Expand Down

0 comments on commit 381149d

Please sign in to comment.