fixed crash on empty adapter list on linux