View Holder cannot be Null is the error message. Please help me to fix this : I am trying to build and weather app and on Menu List Adapter class i am getting the error message saying " View Holder() in View Holder cannot be null". 

Could you please help me to get this issue fixed?

This is the android code i am tying to build the application using android studio

    import android.annotation.SuppressLint;
    import android.app.Activity;
    import android.view.LayoutInflater;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.view.ViewGroup;
    import android.widget.ArrayAdapter;
    import android.widget.FrameLayout;
    import android.widget.TextView;
    import java.util.ArrayList;
    import com.weather.queensland.weather.pojo.MenuListPojo;
    
    public class MenuListAdapter extends ArrayAdapter<MenuListPojo>
    {
      Activity activity;
      private ArrayList<MenuListPojo> dataSet;
      private int lastPosition = -1;
      
      @SuppressLint("ResourceType")
      public MenuListAdapter(ArrayList<MenuListPojo> paramArrayList, Activity paramActivity)
      {
        super(paramActivity, 2131296289, paramArrayList);
        this.dataSet = paramArrayList;
        this.activity = paramActivity;
      }
      
      @SuppressLint("ResourceType")
      public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
      {
        MenuListPojo localMenuListPojo = (MenuListPojo)getItem(paramInt);
        ViewHolder localViewHolder;
        if (paramView == null)
        {
          localViewHolder = new ViewHolder(null);
          paramView = LayoutInflater.from(getContext()).inflate(2131296289, paramViewGroup, false);
          localViewHolder.nav_new_title = ((TextView)paramView.findViewById(2131165332));
          localViewHolder.nav_new = ((FrameLayout)paramView.findViewById(2131165321));
          paramView.setTag(localViewHolder);
        }
        for (paramViewGroup = localViewHolder;; paramViewGroup = (ViewHolder)paramView.getTag())
        {
          this.lastPosition = paramInt;
          paramViewGroup.nav_new_title.setText(localMenuListPojo.getTitle());
          paramViewGroup.nav_new.setOnClickListener(new View.OnClickListener()
          {
            public void onClick(View paramAnonymousView)
            {
              int i = ((Integer)paramAnonymousView.getTag()).intValue();
              paramAnonymousView = (MenuListPojo)MenuListAdapter.this.getItem(i);
              ((ForecastWeatherActivity)MenuListAdapter.this.activity).callOnMenuItemSelection(paramAnonymousView.getLink());
            }
          });
          paramViewGroup.nav_new.setTag(Integer.valueOf(paramInt));
          return paramView;
        }
      }
      
      private static class ViewHolder
      {
        FrameLayout nav_new;
        TextView nav_new_title;
      }
    }