add check for null parameters value in calcHashcode()

git-svn-id: https://smali.googlecode.com/svn/trunk@369 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-08-06 06:47:52 +00:00
parent a3cf936fc2
commit bc2e69f5b2

View File

@ -171,7 +171,7 @@ public class ProtoIdItem extends Item<ProtoIdItem> {
*/ */
private void calcHashCode() { private void calcHashCode() {
hashCode = returnType.hashCode(); hashCode = returnType.hashCode();
hashCode = 31 * hashCode + parameters.hashCode(); hashCode = 31 * hashCode + (parameters==null?0:parameters.hashCode());
} }
@Override @Override