Add missing annotation
Narrow the scope of the zoom variable
Narrow the scope of the viewport variable
Identify variables initialized in onCreate()

Those cannot be null once onCreate() has executed.