code question flow aid

Hello

This question about the following code

public static boolean isParamsOK(String _dbName, String _projectName) {
        // TODO Auto-generated method stub

         String dbName = _dbName;
         String projectName = _projectName;

            if(dbName==null){
                errorDialog("dbName can not be null");
                return false;} 

            if(dbName.equals("")){
                errorDialog("dbName can not be empty");
                return false;}
            //Code A
            if(projectName==null){
                errorDialog("projectName can not be null");
                return false;}//end of Code A
            //Code B
            if(projectName.equals("")){
                errorDialog("projectName can not be empty");
                return false;}//end of Code B

            // if not nothing occur above all fine :)
            return true;

    }// end of isParamsOK

When I share Code A and B of the Code. I'm getting a NullPointerException.

Can someone explain the reason please.

Thank you in advance.

Looks like your projectName is null when you get that. Verification that A don't, you're preventing him from getting to the OE to B by actually checking if it's null first.

Tags: BlackBerry Developers

Similar Questions

  • OTP-S590 remote code question

    Just set up my S590 and it works very well.

    I have connected the S590 to my stereo system to Sony DAV - FC7 (via composite) for which I lost the remote control.

    The remote control for the media player that I used until I'm the S590, who was a Philips DVD player with USB connection, allowed me to control the levels of the audio output of the player. This is possible using a custom firmware.

    Now the remote S590 has a volume knob and I have a few questions:

    1. can I program the remote S590 to control the volume of the composite output of the S590 itself?

    2 of universal remote would. what type you recommend which allows me to use the S590, DAV - FC7 and my Sharp TV?

    Thanks in advance!

    Hello Tom

    The volume button on the Blu - ray player's remote control is used to control the TV volume.
    The player's remote control cannot be programmed to control the volume of the car radio.

    You can use the code 18 to program the supplied remote control to the player to control the Sharp TV.

    To buy a universal remote, you can contact the nearest Sony dealer.

    Kind regards

    Colby

  • Windows activation code question

    I woke up this morning to the computer asks me a product key Windows activation code after an update of service. I entered the product key off the coast of the sticker from original manufacturers on the back of the computer, but it tells me that the code is not valid. I double checked twice the number. Someone at - it advice for me. I enter the sharps. Do I need to do or leave them? I'm perplexed as to what I could hurt the number is right there at the back of the computer. I need help!

    Hello

    Please follow the steps in the links below and let know us the status of the issue.

    Resolve activation problems:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-activation-problems

    How to activate Windows Vista:

    http://support.Microsoft.com/kb/940315

     

     

    Activating Windows: Frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows-Vista/activating-Windows-frequently-asked-questions

     

     

    For more information:

     

    Genuine Windows: Frequently asked questions:

    http://Windows.Microsoft.com/is-is/Windows/help/genuine/FAQ

     

     

    How to contact a Microsoft Product Activation Center by phone:

    http://support.Microsoft.com/kb/950929

     

     

    I hope this helps.

  • Upgrade for the WLC code questions

    We 6.0.132 (lastest) WCS and our controllers are on 4.2.130, we now to upgrade to deal with sometimes, but don't want to capwap yet.

    Question 1: what is the last exit LWAPP code?

    Question2:Whats the differences between 4.2.207 (support page for cisco said it's the latest version), but it has same releases with ie 6.0 how it works it is very confusing workout a way to upgrade to higher versions

    See you soon

    Hi Tyrone,

    I'm not an expert on the management of versions, but here are some basic in response details

    at your request

    4.2.207 is the last version on the Train of 4.2 and is without doubt an excellent choice

    If you are avoiding CAPWAP for now. You will see in the link below which

    There are several 'simultaneous' for the WLC Trains (and most of the Cisco product). People

    were not big fans of the first Trains 5.x (quite buggy) and was introduced to CAPWAP

    in 5.2 and the attacker thus is why 4.2.207 seems to be a good choice for you

    In the later version or 5.2 controller software version, Cisco lightweight access points use the IETF control and commissioning of Access Points (CAPWAP) standard protocol to communicate between the controller wireless and other points of light access on the network. Versions software controller before 5.2 use the Lightweight of Point access (LWAPP) Protocol to these communications.

    CAPWAP, which is based on LWAPP, is a standard and interoperable protocol that allows a controller manage a collection of wireless access points. CAPWAP is implemented in version 5.2 software controller for these reasons:

    *

    To provide a path for upgrade of Cisco products that use LWAPP generation Cisco products that use CAPWAP
    *

    To manage RFID readers and similar devices
    *

    To allow controllers to interoperate with third party access points in the future

    LWAPP compatible access points can discover and join a CAPWAP controller, and conversion to a controller of CAPWAP is transparent. For example, the process of discovery of controller and firmware download process when using CAPWAP are the same as when you are using LWAPP. The only exception is for layer 2 deployments, which are not supported by CAPWAP.

    You can deploy CAPWAP and LWAPP controllers on the same network. The CAPWAP compatible software allows access points join to be a controller running CAPWAP-LWAPP. The only exception is the Access Point Cisco Aironet 1140 series, which takes in charge only CAPWAP and joined so only controllers that run CAPWAP. For example, 1130 series access point can reach a controller running CAPWAP or LWAPP considering that access of series 1140 point can join only a controller running CAPWAP.

    http://www.Cisco.com/en/us/products/ps6366/products_qanda_item09186a008064a991.shtml

    4.2.207 was released on July 24, 2009 which makes the new second version available on any train.

    http://www.Cisco.com/en/us/products/ps6366/prod_release_notes_list.html

    See you soon!

    Rob

  • Lightroom 4 GPS / country Code questions

    1. If you import an image with GPS data, Lightroom 4 will add the appropriate values for the secondary, city, State/Province, country and country Code.  Is it possible to add this data to existing files while retaining history?

    You can write metadata to the files ([Ctrl] [S]), delete these files from Lightroom and then synchronize a file to re-import them.  With all the changed settings but without their history re-imports.  Is there another way that keeps the story?

    2 is a link to the google map available for a GPS to a photograph?

    In Lightroom 3, you can click on the GPS location and that you access a Google map with a web link specific page that you could then publish, for example on a blog.  You can copy and paste the GPS location on a Google map page, but it does not give you a web link that you can use.

    3 is there a way to publish a map?

    Is there (or will there be) any way to export a map page, say to JPEG?

    Is it possible to take a screenshot of a map page and publish, for example in a blog?

    1. There is no way to save the history in the file.

    2. Yes, hold down the Alt/Option key when you click on the GPS field in the card module.

    3A. isn't that I know, and I was expecting such a feature have been documented if possible.

    3B. at the present time, is not what power or power does not happen in the future.

    Good question 3(c). It's actually what Adobe, the authors of the book, the bloggers, reviewers have in fact already since beta Lr4 came and for long before avery that.

  • Add animation code question

    I try to add code for the animation to a layer that has a tag on it clicks. I feel like I'm close, but I'm missing something. Here's what I have so far and I've linked a .fla CS4 basic file can better illustrate my question.

    var loop = 0;
    
    clickTAG_btn.onRelease=function(){
    getURL(clickTag,"_blank");
    }
    
    mc_complexButton.onRollOver=function(){
    this._parent.play(1);
    }
    
    mc_complexButton.onRollOut=function(){
    this._parent.gotoAndStop(10);
    }
    

    My "clickTAG" coding is correct. But I'll try to have the mc_complexButton to turn when you hover over the button "clickTAG". It does not work unless I hide the layer that contains the button "clickTAG". I'm sure I'm not referencing the mc_complexButton correctly, or of course what numbers should be in parentheses after him. Thanks for any help or an explanation.

    http://DL.dropbox.com/u/24097164/Valentine_testheart.fla

    Just for reference, I will add animation to the heart in the final version, the circle is simply a placeholder to get the correct code.

    use:

    var loop = 0;
    
    clickTag_btn.onRelease=function(){
    getURL(clickTAG,"_blank");
    }
    
    clickTag_btn.onRollOver=function(){mc_complexButton.play();}clickTag_btn.onRollOut=reverseF;
    
    mc_complexButton.onRollOver=function(){
    this._parent.play(1);
    this.play();
     }
    
    mc_complexButton.onRollOut=function(){
    this._parent.gotoAndStop(10);
    reverseF();
     }
    function reverseF(){
    
    mc_complexButton.onEnterFrame=function(){
    this.prevFrame();
    if(this._currentFrame==1){
    delete this.onEnterFrame;
    }
    }
    
    }
    
    
  • Test Code Question SMART diagnosis HPE 150 t PC with Windows 7 64 bit

    HPE 150 t PC Windows 7 64 bit

    The SMART monthly test States: WARNING: for an indefinite period. State Smart information indicate the status code 297Ch. Does anyone know what this means?

    "Inderterminate" status means that the utility could not perform the test. correctly. It is most likely a software problem and is not a problem with your system.

  • PIX501 Question flow

    Hello

    I have a PIX501, that is about 2 years 6.3 (5) running. I wonder what the flow is about it. I looked through the cisco Web site, but I noticed that the PIX501 is now 100 MB outside the Interface. Was there a change to this. I am convinced that mine has a 10 MB int. I guess that it is half-duplex.

    I am upgrading to the 17 MB internet connection and wonder if the PIX can handle this.

    Otherwise, and since I do not think that Cisco will never bring Pix 7.0 on these units, I look something like a 871, etc.. How to compare the capabilities of FW to PIX.

    Thank you

    I don't think you need to worry unless you use VPN tunnel on it

    When you upgrade the PIX 501 version 6.3, the inside interface is automatically upgraded to 100 Mbps duplex full. During the upgrade process, the system displays the message "interface ethernet1 can be defined to 100full."

    Summary of performance

    ClearText flow: up to 60 MB/s

    Concurrent connections: 7 500

    THE 56-bit IPsec VPN throughput: up to 6 MB/s

    3DES 168 bit IPsec VPN throughput: up to 3 Mbps

    128-bit AES IPsec VPN throughput: up to 4.5 Mbps

    Simultaneous VPN peers: 10 *.

    * Number of concurrent access from site to site or remotely (SAs) IKE Security Association support

  • Button code question

    Let's say I have a "circle_btn" button in a flash file a picture.  The circle is supposed to be hidden, so I have this button, the value 0% alpha.  What code can put in AS3 so that once the user clicks on the 'invisible' button, a large chart with an X appears on it?

    You will need to use a movieclip for the X symbol, not a graphic symbol, because you must assign an instance name to target with code.

    So if you call it "xName" you would start code that makes the invisible X immediately...

    xName.visible = false;

    and where the Manager works for the circle button you would use...

    xName.visible = true;

  • Simple actionscript code question

    I have a project that I'm working and I'm new to actionscript 3.  Here is the code that I have on frame 1 and it works very well for a button.

    import flash.events.MouseEvent;
    Stop();

    -Buttons

    buy_btn.addEventListener (MouseEvent.MOUSE_OVER, buyROLL);
    buy_btn.addEventListener (MouseEvent.MOUSE_OUT, redemption);

    function buyROLL(event:MouseEvent):void {}
    buy_mov.gotoAndPlay (2);
    }
    function buyOUT(event:MouseEvent):void {}
    buy_mov.gotoAndPlay (15);
    }

    When I try to add several buttons like the code below, flash freaks out!  It does not stop even on the first image.  He plays straight through film.  I get these errors "scene 1, layer ' Layer 2', frame 1, line 20 1120: access of undefined property about_mov." and "scene 1, layer ' Layer 2', frame 1, line 23 1120: access of undefined property about_mov.»»»

    import flash.events.MouseEvent;
    Stop();

    -Buttons

    buy_btn.addEventListener (MouseEvent.MOUSE_OVER, buyROLL);
    buy_btn.addEventListener (MouseEvent.MOUSE_OUT, redemption);

    about_btn.addEventListener (MouseEvent.MOUSE_OVER, aboutROLL);
    about_btn.addEventListener (MouseEvent.MOUSE_OUT, aboutOUT);

    function aboutROLL(event:MouseEvent):void {}
    about_mov.gotoAndPlay (2);
    }
    function aboutOUT(event:MouseEvent):void {}
    about_mov.gotoAndPlay (15);
    }

    I'm doing this right? Is there an easier and more efficient way to do this?

    Chances are that you don't have an assigned to the about_mov movieclip instance name.  When there is an error in coding in an AS3 file, erratic behavior you're seeing is normal.

  • HTML code question

    FrontPage was built in functionality to what MS called bookmarks. Another reference has anchors. It was just a way to add a hyperlink that you have access to a specific location on the page. DW has something built in like this or do I just to code by hand?

    Thanks, that's what I was looking for.

  • P6055d Office HP upgrade disk question of aid and recovery (Pavilion)

    Hello. It seems to have misplaced my pc recovery disc and I recently found the discs 1 and 2 (dvd). I forgot how many DVDs have been used when creating recovery disc. Can someone tell the number of recovery disks created using DVD for this particular model? As I said, I didn't find that 2 recovery discs and I don't remember really there's only 2 dvds.

    Also, I'm upgrading from Windows Vista to Windows 7 (Enterprise) and I intend to do a custom installation, including reformatting my pc. I currently have 3 partitions: drive C, the recovery partition and a partition for my documents. I was wondering what I would do when I'm updating because I'm worried that this will greatly affect my computer if I lose the recovery partition when I reformat my computer. You have an idea how I could copy the recovery partition on any other device as a drive so that I don't lose it when I upgrade to Windows 7? Note that this will be my first time change my OS by myself.

    I hope I am making sense here. I hope someone can help me here. Thank you!

    Lose the recovery partition is not as big a deal as determining if the recovery DVD set is over. Usually the recovery partition does not work after changing the OS anyway for most people just delete it during the installation of new.

    Some systems take only 2 while others take 3 so no way to determine if your are done without having to start with them to see if they do a complete installation. Copy of the recovery partition rarely ever works. best is to test recovery set before moving to the new operating system. Save your documents on external hard drive before launching the recovery discs!

  • simple actionscript code question order

    Hello everyone. I'm just

    Learing actionscript. I can't find how to insert simple

    commands in my animations, like play() and stop(). I have to do something fundamentally wrong. One thing I noticed in the tutorials that I am studying, it's tutorials seem to be able to create a 'actions' layer and assign an actionscript command to individual images on the line of action of different clips.  When I try to do, I see the same script command action on EACH frame of the movie clip, and of course, the commands do not work.  I want my video to play until the last image and stop, without loop, but it loop just permanently.

    Anyone have any ideas what I am doing wrong?

    Thanks in advance!

    Yes, you must create a 'key' on this last picture image.

    then, return to this movieclip and remove the stop that you added. There is therefore no stop() at all in this timeline.  now, right-click on the last image of the Assembly of your movieclip and click 'insert a keyframe.  now, while this keyfame is still selected in your properties panel, type:

    Stop();

    Repeat the test.

  • List Code Question

    I created an XML reader who is ready for a CD collection. Now I would like to pass this information in a list or a list of properties, but can't seem to find a way to do this with several titles.  Here's what one entry looks to...

    [#title: "Hide Your Heart", #artist: "Bonnie Tyler", #country: "UK", #company: 'CBS Records', #price: #year "9.90",: "1988"]

    Now, if it was the only title, I could easily access each of these symbols, but I can't understand how to enter several items in a list. I can format multiple items as a variable, but it wouldn't work as a list... thinking that it is just a string. I am now throwing up my hands and ask for help. Any ideas?

    Thanks in advance.

    Try this way:

    gPlayList =]
    gPlayList.append ([#title: "Surrealistic Pillow", #artist: "Jefferson Airplane", #country: "US", #company: "RCA Victor", #price: #year "9.90",: "1967"])
    gPlayList.append ([#title: "Let It Bleed", #artist: "the Rolling Stones", #country: "UK", #company: "Decca", #price: "9.90" #year,:"1969"]) "])
    gPlayList.append ([#title: "Of Sgt. Pepper's Lonely Hearts Club Band", #artist: "The Beatles", #country: "UK", #company: "Parlophone" #price: #year "9.90",: "1967"])

    now, you'll have a linear list containing find for these albums.  You can access the bits like this:

    put the gPlayList [1]

    -[#title: "Surrealistic Pillow", #artist: 'Jefferson Airplane', #country: 'US', #company: "RCA Victor", #price: #year "9.90",: "1967"]

    put gPlaylist [2] [#artist]

    -The Rolling Stones.

    To add a new album, you could do something like this:

    newAlbum = [:]

    newAlbum [#title] = 'Dark Side of the Moon'

    newAlbum [#artist] = 'Pink Floyd'

    newAlbum [#country] = 'UK '.

    [#company] = newAlbum "Capitol".

    newAlbum [#price] = '9.90.

    newAlbum [#year] = '1973 '.

    gPlaylist.append (newAlbum)

  • Q: questions to aid Assistant WSDL in Flex Builder

    I cannot generate Proxy AS files leave a WSDL. Incident (with the WSDL/schema files) is here http://bugs.adobe.com/jira/browse/FB-10541

    I'd appreciate if you could try to generate proxy AS stubs - if you have a bit of luck, please send them to me!

    Thanks in advance.
    Adam

    Catalin,

    Thanks for the update! When can I expect the next version to be released? No need to appologise, I realize it is a beta and I please, you were able to solve another problem!

    Thanks in advance.
    ADA,

Maybe you are looking for