fix redundant null check from findbugs.
fix serializable field by findbugs.