← All repos

NullAway

A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead

androidjavanullabilitynullability-analysisstatic-analysisstatic-code-analysis
Browse cluster: Static Analysis & Code Quality
1,256commits
82contributors
3languages

Tech stack & purpose

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.

Community & reference links

Languages

Java
99.5%
Python
0.4%
Shell
0.0%

Contributors (top 30 of 82)