code: def getCurrentObjective(self):
          
          name = self._impl.getCurrentObjectiveName()
          if name == '':
              return None
          else:
              return self.getObjective(name)
docs: Get the the current objective. Returns `None` if no objective is set.