I am doing one android application, in this app I am creating UI fields dynamically by local db. While creating fields based on response from remote server I am getting some null pointer exception due to some fields are not found in db. But, I handle these exceptions by using try catch block. Is these exceptions cause to lower performance of app? If yes then give me any other alternatives to handle this.
here is my code-
@Override
public void populateField() {
String value = "";
try {
value += DBHelper.getInstance().getDataByID(mField.getId(),
refCode).getFieldValue();// **here getting exception**
.
....
} catch (Exception e) {
Logger.ex(e);
}