Test for Existence of a View

Bill Norris

Active Member
Licensed User
Longtime User
This is kind of a follow up question to my previous post. If you try to reference
a particular element of a view array that has not been initialized and added to the activity, a Null Pointer error is generated. Is there a way to determine if that view "exists" on the activity before attempting to reference it?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…