get_active should return None if no history object exists

svn: r15037
This commit is contained in:
Nick Hall 2010-04-05 16:14:26 +00:00
parent 844002e312
commit ffffb7047c

View File

@ -413,7 +413,7 @@ class DisplayState(gen.utils.Callback):
navigation type and group.
"""
history = self.get_history(nav_type, nav_group)
return history.present()
return history.present() if history else None
def set_active(self, handle, nav_type, nav_group=0):
"""