Fix segfault in otherPrint test.

Change-Id: Ie3e3144fdec656df2c5d4ec0f8a598fd14cef04a
Merge topic 'otherPrint-fix' into master

978938cc Fix segfault in otherPrint test.