Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User iamvinay's Avatar
    Join Date
    Jul 2010
    Location
    Bangalore
    Posts
    1
    Hi,

    I am not sure if I can post this here.

    I have a midlet class file, which has two text fields.
    I take these values from simulator, then try to pass these
    values as string to another class. At this point I am getting NULLPOINTEREXCEPTION on CommandAction.

    /************************************************************************/
    n = name.getString();
    c = company.getString();
    handleSave.saveEntry(n.toString(), c.toString());

    /************************************************************************/

    saveEntry(String s1, String s2) exists in another class in the same package. Error throws when the
    control comes to this line of statement. Not any hyper error. Its just NULL Pointer exception.

    Is there anything I am missing..?

    I can post the two class files if somebody can really help me out.

    Thanks in advance,
    Vinay.

  2. #2
    Registered User ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    Welcome to Forum Nokia Discussion Board!
    Cut Paste more of your code here.

    Is handleSave null here ? Where is this object instantiated ?
    Thanks,
    Ekta

Similar Threads

  1. C++ Symbols class(), class()->,class. ????
    By PACALA_BA in forum Symbian C++
    Replies: 7
    Last Post: 2008-09-15, 20:57
  2. Replies: 0
    Last Post: 2004-03-03, 10:34
  3. Replies: 6
    Last Post: 2004-01-22, 20:48
  4. How to convert 'class TBuf8<60>' to 'const class TDesC16 &'
    By wingfancy in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-05-08, 12:58
  5. Replies: 2
    Last Post: 2003-03-18, 06:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved