1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Small fix to ValueTree

This commit is contained in:
Julian Storer 2010-01-03 22:57:39 +00:00
parent 59a2506864
commit 45befc9ed2
3 changed files with 5 additions and 5 deletions

View file

@ -519,7 +519,7 @@ int ValueTree::getNumChildren() const throw()
ValueTree ValueTree::getChild (int index) const throw()
{
return (SharedObject*) object->children [index];
return object != 0 ? (SharedObject*) object->children [index] : ValueTree ((SharedObject*) 0);
}
ValueTree ValueTree::getChildWithName (const String& type) const throw()