  
  void Networking::sidebarChange(){
    s->setCurrentIndex(1);
    an->s->setCurrentIndex(1);
    refresh();
  }
  
 
</s> remove   AdvancedNetworking* an;
 </s> add  </s> remove   QStackedLayout* s;// keyboard, wifiScreen, advanced
  
 </s> add   QStackedLayout* s = nullptr;// keyboard, wifiScreen, advanced
  AdvancedNetworking* an = nullptr;

  if (s == nullptr || an == nullptr){
    return;
  }

  
  void Networking::sidebarChange(){
  if (s == nullptr || an == nullptr){
    return;
  }

    s->setCurrentIndex(1);
    an->s->setCurrentIndex(1);
    refresh();
  }
  
keep add keep keep keep keep keep
 qt ui: fix segfault if networkmanager is not running 
selfdrive/ui/qt/offroad/wifi.cc