Covered null pointer case of transpose method
Amended javadoc of transpose