check builds variable is not null
Updated javadoc
Updated javadoc