Menu

getCategory method returns null

Help
Elaine
2006-01-29
2013-04-03
  • Elaine

    Elaine - 2006-01-29

    Hi,

    This seems kind of strange to me, but I just noticed that if the category is calendar, contact, task, journal or note the result of getCategory is null.

    The Google Desktop Search Query API Developer Guide does not mention this, but when I do a Google Desktop search from the web page, it lists these categories as other. I know that Maso only documents email,chat,web and file as return values.

    In my code, I have just checked for null as the return value of getCategory.

    I looked at the gdapi code and did not see a way to modify it - I may not understand it all, but the getCategory method in ResultsTypeImpl is generated and can't be modified.

    Has anyone found a better way to handle this problem?

     
    • Elaine

      Elaine - 2006-02-19

      Instead of checking for null as a return value of getCategory, I decided to modify
      ResultsTypeImpl.java, getCategory()and set _Category to "other".  So this would have to be modified if ResultsTypeImpl.java is regenerated.

       

Log in to post a comment.

MongoDB Logo MongoDB