NullAway is a static analysis tool developed by Uber to help Java developers prevent NullPointerExceptions. It examines how potentially null values are used throughout a program and reports operations that could cause runtime failures.
The software operates as an Error Prone plugin, allowing its checks to run during the normal Java compilation process. It uses nullability annotations to distinguish values that may legitimately be null from those expected to contain valid object references.
NullAway aims to provide practical null safety without imposing excessive compilation overhead or requiring large numbers of annotations. It is particularly suitable for development teams that want to introduce stronger null checking into existing Java projects while retaining their normal build workflows.
This is free and open source software.
Key Features
- Static nullability analysis designed to identify potential NullPointerExceptions before execution.
- Integrates with Error Prone to perform checks during Java compilation.
- Uses nullability annotations to distinguish nullable references from non-null values.
- Detects potentially unsafe dereferences of fields, method parameters and return values.
- Checks assignments, method calls and return statements for violations of nullability contracts.
- Supports JSpecify annotations and null-marked code through its JSpecify mode.
- Provides configurable analysis boundaries for selecting which packages or annotated code should be checked.
- Performs local, type-based analysis designed to keep compilation overhead relatively low.
- Supports gradual adoption in existing projects rather than requiring an immediate complete conversion.
- Allows selected warnings to be suppressed where necessary.
- Works with Gradle and other build systems supported by Error Prone.
- Supports nullability checking in Java projects without requiring a different programming language.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/uber/NullAway
Support:
Developer: Uber Technologies, Inc.
License: MIT License
NullAway is written in Java. Learn Java with our recommended free books and free tutorials.
Related Software
| Java Linter Tools | |
|---|---|
| SpotBugs | Find bugs in Java code |
| PMD | Extensible cross-language static code analyzer |
| Error Prone | Catch common Java mistakes |
| NullAway | Eliminate NPEs in Java code |
| Infer | Static analysis tool for Java, C++, Objective-C, and C |
| Checkstyle | Write Java code that adheres to a coding standard |
| Checker Framework | Pluggable type-checking for Java |
| OpenRewrite | Automates large-scale source code refactoring and migration |
| Find Security Bugs | Detects security vulnerabilities in Java applications |
| Forbidden APIs | Checks Java code for prohibited or unsafe API usage |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.