diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-08 05:01:04 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-08 04:08:55 +0000 |
commit | 8b86768a9a72ce6ef326615cb7c9ad5c76172921 (patch) | |
tree | f63ee19cac23a129f4421778c10297cdd13559ef /sc | |
parent | 87ef2d8f2808a951c92387ba0582ea02a19f89e7 (diff) |
GetInputHdl may return nullptr
As can be seen in the other places we need to check for nullptr.
See
http://crashreport.libreoffice.org/stats/crash_details/553b9ef5-c85f-4cda-b432-472501795634
Change-Id: Ic5cab914f403fcae7f4e1e6f0e66c6295f7f56dd
Reviewed-on: https://gerrit.libreoffice.org/27949
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index b37e3765dd43..d79e28050c9a 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1056,7 +1056,8 @@ IMPL_LINK_NOARG_TYPED(ScInputBarGroup, ClickHdl, Button*, void) TriggerToolboxLayout(); // Restore focus to input line(s) if necessary - if ( SC_MOD()->GetInputHdl()->IsTopMode() ) + ScInputHandler* pHdl = SC_MOD()->GetInputHdl(); + if ( pHdl && pHdl->IsTopMode() ) maTextWnd->GrabFocus(); } |