[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[jdt-core-dev] Can IParent.getChildren() return null
|
- From: Prashant Deva <prashant.deva@xxxxxxxxx>
- Date: Wed, 17 Jun 2009 16:37:39 -0700
- Delivered-to: jdt-core-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=s6QN7Yfm/laaK+FEpXKnXERds6IzajwPDupS+QY0rL8=; b=KdY2vopD0zVARlrgl1l3Ceb3wPIryJ4un3X2M1ewdFatry8x8a1eYOfu+Ds5mP1FRN 2/NOrf3eLNvTsgA/m0rySVSIGjhptDMevTDPI2dvPf5KS9ZuWvm3WE2hKJ/m0yAufqNd LvyLSXGDH8LHIXeI8g5iAypdd84o+XDDS2CBs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=dpoJYIWrXUdrENRNtHbkng++r/OThuazD1hn20OOnrfytHaT9QT2N3BQjtCsQ6tVTC OBVe87qBLDWMZyJbbMR21jQtnGyQJzCfqk/f67z5hJZyqc7NweiM8uLAUogpe611G477 MpyHGjGPZKCSQCfiuZa9RE0HkSXKZ0t2Vjb7o=
I see that IParent.getChildren() is implemented in BinaryType, which returns ClassFileInfo.binaryChildren.Now ClassFileInfo.binaryChildren seems to be initialized with a null.
Does that mean that everywhere getChildren() is used, there needs to be a null check?
Prashant