python: Don't try to bind a stat group to the NULL simobject.

That is a SimObject like object which is used when a SimObject
parameter is purposefully left empty, vs. being accidentally left
empty through a typo or accidental ommission.

It doesn't have a getCCObject method, and attempting to use it anyway
causes gem5 to crash.

Change-Id: Ie86321fbdbcc41cf88b7009184423acd7b64484b
Reviewed-by: Andreas Sandberg <>
Reviewed-by: Anthony Gutierrez <>
Maintainer: Andreas Sandberg <>
Tested-by: kokoro <>
1 file changed