Skip to content

Instantly share code, notes, and snippets.

@skihero
Created March 1, 2011 11:34
Show Gist options
  • Save skihero/849005 to your computer and use it in GitHub Desktop.
Save skihero/849005 to your computer and use it in GitHub Desktop.
List <UCService> list_ucs ;
/* add the subscribed services to a list */
list_ucs.add(ucs) ;
Gives local variable list_ucs may not have been initialized.
List in java needs to be initiallised like
List <UCService> list_ucs = new ArrayList<UCService>(); /** WTF **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment