Currently having an issue where I am popping a message dialog up to prompt the user to enter a string. I have a check for the name being empty which works properly if they hit the "ok" button however if the user hits the cancel button (whether t
I've been trying to make a small WebView app that lets the user search and load websites within it. Currently my code looks promising in terms of the structure and the reference used, but I have stumbled upon an error which I can't seem to fix. Ive b
I am writing to parquet file using protobuf (or Avro). my proto file looks like this: message Log { optional string date = 1; optional string url = 2; } it is a reduced version of my problem. Now when writing to a parquet file (Non-hadoop), I want to
public String letterInput() { System.out.print("Enter letter of first position : "); String letterInput = input.next(); return letterInput; } i cannot access the variable letterInput outside this method i get a java.lang.NullPointerException err
I'm using a SQLite database and whenever I call it, I need to pass the context to it. I usually do this using getApplicationContext() which works in other activities. In my current class it just returns null. Help! 04-06 16:46:19.523: E/AndroidRuntim
I want to draw images on generated coords after some time delay but I got nullpointerexception. I'm trying to make that my image will move from one point to another with visible time delay. public class PaintStations extends JPanel implements Runnabl
Consider this class: package be.duo.test; public class Main { public static void main(String[] args) { Main main = new Main(); main.execute(); } private void execute() { for(int i = 0; i < 10; i++) { System.out.println("" + method()); } } pri
I am completely brand new to Android developement and this is the first day I ever touched Android studio. I'm implementing a note taking app which has the settings page that help users to change the colour of the text. The settings page has 3 radio
I am trying to set up a translation service which will use gnu gettext. The basic idea is from: https://thedarkgod.wordpress.com/2009/01/18/java-webapp-localization-through-gettext/ But I would like it to be implemented as a service. For some odd rea
So, my assignment is to write a program that accepts student names and grades, and utilizes multiple arrays. I've rewritten the section of code throwing the runtime error several times in different ways, but with the same NullPointerException error.
if anyone could help with this that would be great! I keep getting a null pointer error which is odd because the application was working fine a few minutes ago and I cannot see what is wrong, it crashes on launch. If you need anything else that will
I get this error once in a blue moon and can't seem to reproduce it or find out what the issue is: java.lang.NullPointerException at com.example.mike.beerportfoliomaterial.BeerPage.onSaveInstanceState(BeerPage.java:221) at android.support.v4.app.Frag
I'm in the process of migrating embedded tomcat application from 7.0.59 to tomcat 8.0.20 After updating the Tomcat version when I'm starting the embedded server and try to access the home page I'm getting a NullPOinterException ERROR {org.apache.cata
I am working on making a program that makes a grid of a random size >1 and then randomly puts walls inside the maze. The program is then supposed to find a route from the starting point to the goal. I am using a breadth search. my problem is that
I am using the DownloadManager to download files from a server, I'm doing it from an adapter, and I'm showing the download progress in the fragment using a runOnUiThread. it's working great, but when I press the back button while downloading, the run
I get nullreferenceexception in my UI code. idk what the problem is yesterday its works have changed some stuf and now it doesn't work anymore i think its something where i create the buttons can someone look where i have maked the mistake import jav
I tried both textview and listview but text is not appearing .The window for speaking is coming when i say something it process and close forcefully. error shows nullpointer exception,but my java code public class MainActivity extends ActionBarActivi
i'm still starting to Learn OOP and there is this error that keeps popping out in my code; says that Exception in thread "main" java.lang.NullPointerException public class SlumbookDriver{ public static void main(String args[]){ Slumbook[] contacts =
I'm calling MainActivity function sendToServer(arguments) in Retriver.java class, this function works fine when I'm working in mainactivity class. But when I call it from retriver.java i get nullPointExceltion Logcat: 12-29 02:24:07.772: E/AndroidRun
I am experimenting with Messages classes instead of using hardcoded strings for user displays. However, I get a Potential null pointer access: this expression has a '@Nullable' type warning from Eclipse (Luna - 4.4.1) with the following code: In pack