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