When the clarifai API is called on an image it returns List of ClarifaiOutput Concepts. But on accessing the concepts only values can be accessed. Accessing name of the concepts results in NullPointerException.
concept.name() results in exception whereas concept.value() works fine
The Exception can be handled using a try catch block but I want to know the predicted concept names.
Please let me know what can be done to resolve this.