to be safe, we should wrap this with: if (bootstrap != null) { ... }