Don't throw an error for dimension 0.
Update javadoc