A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
NullAway is a static analysis tool built by Uber that eliminates NullPointerExceptions in Java code through annotation-based null checking. The tool works by requiring developers to add `@Nullable` annotations to fields, method parameters, and return values that may be null, then performs type-based local checks to ensure dereferenced pointers cannot be null. Built as a plugin to Error Prone, NullAway is designed for practical use with low build-time overhead (typically under 10%) and supports Java projects using Gradle, Android development, and various annotation libraries including JSpecify, AndroidX, and JetBrains annotations.