mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Graph: Avoid calling a method on null
Fixes APP-DX
This commit is contained in:
@ -188,8 +188,10 @@ class Graph extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void stopLayout() {
|
void stopLayout() {
|
||||||
layoutTimer.cancel();
|
if (layoutTimer != null) {
|
||||||
layoutTimer = null;
|
layoutTimer.cancel();
|
||||||
|
layoutTimer = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user