K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-02-11T04:12:12.052106Z K 7 svn:log V 49 Make code more stable by checking NULL pointers. END