handle null stack trace case