Should never throw an NPE. Was this against actual server or stub? Either way, root cause needs to be fixed