 This phase II trial studies how well nintedanib works in treating patients with advanced non-small cell lung cancer who have failed up to two previous chemotherapy regimens. Nintedanib may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth. 