Skip to content

JSpecify and the Nullness Checker: avoiding Null Pointer Exceptions-Werner Dietl

Photo of Jonathan Fuerth
Hosted By
Jonathan F. and Theresa M.
JSpecify and the Nullness Checker: avoiding Null Pointer Exceptions-Werner Dietl

Details

Null pointer exceptions are the bane of programmers and have been called the "billion dollar mistake". They happen even if you think hard about your code and test it thoroughly. The JSpecify standard https://jspecify.dev/ finally enables nullness specifications across the Java and Kotlin ecosystems. In this talk, we will discuss the causes of null pointer exceptions, including their relationship to issues such as object initialization, map keys, method contracts, Java 8’s Optional class, and dynamic checks. We will also discuss how JSpecify delineates the boundary between null annotated code and legacy code. You will learn about a simple, yet powerful, type system that prevents null pointer exceptions at compile time, turning informal reasoning into machine-checked certainty. We will illustrate these ideas using a freely-available tool called the Nullness Checker https://eisop.github.io/cf/manual/manual.html#nullness-checker that integrates with your development environment and toolchain and has found hundreds of bugs in millions of lines of well-tested code. Bring your tricky nullness issues and see how they can be solved!

About the venue
Free Times Cafe has bistro-style seating and a full food and drink menu. Please consider helping to support the venue by planning to have supper during the talk.

Presenter Info
Werner Dietl https://ece.uwaterloo.ca/~wdietl/ is an associate professor in Electrical and Computer Engineering at the University of Waterloo, Canada. His research interests are in safe and productive software development. He combines theoretical results with practical tools so developers can create high-quality, trustworthy software and reduce the enormous impact of software defects.

Photo of Toronto Java Users Group group
Toronto Java Users Group
See more events
Free Times Cafe
320 College St · Toronto, ON
Google map of the user's next upcoming event's location
FREE
75 spots left