Hi, I just discovered that if content type with id 1003 is not present in the database then:
String handlerClass = admin.getContentHandlerClassForContentType( page - 999 );
Will give a NPE as it tries to find a content type 2002-999=1003 to result in a custom content type handler…
To reproduce the problem delete content type with id 1003 and try content -> publishing -> “Preview selected version”
By the way would be nice if there was a copy of the old forum to check if such problems has been reported.