NullPointerException solved if children list was not created.