Search:

Type: Posts; User: gokuball

Search: Search took 0.45 seconds.

  1. Re: Null Pointer Exception can't figure out how to solve this

    yes thanks for your help i did not initiate a variable. Now i want a anonymous object

    --- Update ---

    Great site by the way!! I think all post more often these days;)
  2. Re: Null Pointer Exception can't figure out how to solve this

    Main Class package controller



    package controller;

    import controller.Controller;

    public class Main {
  3. Re: Null Pointer Exception can't figure out how to solve this

    yes, subscription is a variable which contains a Subcription object. This class is in a different package named model


    import model.Subscription;

    private Subscription subscription;


    I can...
  4. Re: Null Pointer Exception can't figure out how to solve this

    subscriptionbar = new JTextField(subscription.getSubscription());

    is on that line"32/33"

    the compiler works but when i run the main class which makes a new Controller object
    new...
  5. Null Pointer Exception can't figure out how to solve this

    The error:

    Exception in thread "main" java.lang.NullPointerException
    at view.InfoPanel.<init>(InfoPanel.java:32)
    at controller.Controller.makeFrame(Controller.java:41 )
    at...
Results 1 to 5 of 5