Commit b4df565a by Kunj Gupta

Fixed - App is crashing in variable form screen.

parent fd3b90db
......@@ -1258,8 +1258,9 @@ public class CatalogueVariableScreen extends HandleNotificationActivity {
private CatalogueVariable getVariableForName(String name) {
for(int i=0; i<mCatalogueVariableList.size(); i++) {
if(mCatalogueVariableList.get(i).getName().equals(name))
return mCatalogueVariableList.get(i);
CatalogueVariable catalogueVariable = mCatalogueVariableList.get(i);
if(catalogueVariable != null && name != null && catalogueVariable.getName().equals(name))
return catalogueVariable;
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment