Added null check when loading hardness; removed useless null checking for buffer array.