Following the logic from the comment directly above the changed line, since it 
doesn't matter which controller we pick, pick any available controller instead 
of the one called "memory" specifically. This way we are guarded against 
getting `null` as `anyController`, which is being immediately passed down to 
`CgroupV2Subsystem.getInstance()` that is unprepared to accept `null` values. 

It is also worth noting that the previous checks (such as that at line 89) make 
sure that there exist at least one controller in the map.


Commit messages:
 - 8287073: NPE from CgroupV2Subsystem.getInstance()

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Fetch: git fetch pull/8803/head:pull/8803


Reply via email to