Skip to content

Commit

Permalink
Resolve Test Failure: ThreeImageNetwork.FunctionalTestCnetcheckCamera…
Browse files Browse the repository at this point in the history
… (SEGFAULT) (#4035)

* protect for null vals before SetImage

* check for null, not special
  • Loading branch information
tgiroux authored Sep 24, 2020
1 parent f41237c commit 644fea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isis/src/control/apps/cnetcheck/cnetcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ namespace Isis {

// Check the exact measure location
bool setCamera = false;
if (createdCamera) {
if (createdCamera && measure->GetSample() != Null && measure->GetLine() != Null) {
setCamera = cam->SetImage(measure->GetSample(), measure->GetLine());
}

Expand Down

0 comments on commit 644fea3

Please sign in to comment.