If the 401K plan is ERISA qualified, or subject to some other exemption, it shouldn't be affected by the bankruptcy. Your bankruptcy lawyer can confirm its exemption.