diff options
Diffstat (limited to 'src/com/android/settings/widget/ChartGridView.java')
-rw-r--r-- | src/com/android/settings/widget/ChartGridView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/widget/ChartGridView.java b/src/com/android/settings/widget/ChartGridView.java index c2702e4..b930c62 100644 --- a/src/com/android/settings/widget/ChartGridView.java +++ b/src/com/android/settings/widget/ChartGridView.java @@ -116,7 +116,7 @@ public class ChartGridView extends View { mBorder.setBounds(0, 0, width, height); mBorder.draw(canvas); - final int padding = mLayoutStart.getHeight() / 8; + final int padding = mLayoutStart != null ? mLayoutStart.getHeight() / 8 : 0; final Layout start = mLayoutStart; if (start != null) { |