[chronojump/FS-TFT-Menu] Fixed a crash on load a forceSensor set when currentForceSensor == null (no person changed)
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Fixed a crash on load a forceSensor set when currentForceSensor == null (no person changed)
- Date: Wed, 27 Apr 2022 17:18:04 +0000 (UTC)
commit c8dd5522a508fb361ddcd5f47ee17eddf58e770f
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 25 16:43:59 2022 +0200
Fixed a crash on load a forceSensor set when currentForceSensor == null (no person changed)
src/gui/app1/forceSensor.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index c30beb086..5d16507b2 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -2218,7 +2218,8 @@ LogB.Information(" fs R ");
genericWin.ShowEditRow(false);
//select row corresponding to current signal
- genericWin.SelectRowWithID(0, currentForceSensor.UniqueID); //colNum, id
+ if(currentForceSensor != null)
+ genericWin.SelectRowWithID(0, currentForceSensor.UniqueID); //colNum, id
genericWin.VideoColumn = 7;
genericWin.CommentColumn = 8;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]