Can you really not be paid if they didn't get paid? Yes, learn the important language to include in your bid at your contract to assure that you will be paid.
Does your subcontract contain a contingent payment clause?
Clauses for Subs and Suppliers; both spend money without the right to payment. Your right to file a lien or bond claim may be jeopardized.
Watch this video to learn the differences between "Pay-when-Paid" vs. "Pay-if-Paid" clauses and how to spot them, even when the contractor tries to disguise a Pay-if-Paid clause to look like a Pay-when-Paid clause.