bug 401928: fix NPE and default grammar preference access
1 file changed