RE: checking to see if date is NULL

Hi
I have a date field that i'm retrieving and what to check to see if it's null
This is my piece of code:
Date sEmpPlanStartDate = (Date)dsEmpPlan.getRowSet().getCurrentRow().getAttribute("StartDate");
if(sEmpPlanStartDate == null)
{...do something
Everytime it hits the if statement, it bombs out and throws and error and all i get is an application error..
Any help would be very appreciative
Thanks
Michelle

Hi
I have a date field that i'm retrieving and what to check to see if it's null
This is my piece of code:
Date sEmpPlanStartDate = (Date)dsEmpPlan.getRowSet().getCurrentRow().getAttribute("StartDate");Is this statement throwing a NPE? getCurrentRow() will return null if no row is current in the iterator.
You may want to post the exception stack for more clues?

Similar Messages

  • HT4859 Where can I see what data is in my iCloud backup?

    I haven't gotten an error recently, but the iCloud settings don't say when the last successful backup was.  I also don't know how to check to see my data on a PC browser or verify that it backed up everything I want it to. Thanks!

    You can see when your last successful backup was by going to Settings>iCloud>Storage & Backup and reading under Bac Up Now at the bottom.
    You can see what is in your backup.  You can only see what you have selected to be backed up by going to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your phone on the Backups list at the top, then looking under Backup Options.  Note: your backup will contain other data as well (such as your text messages); these don't show under Backup Options because you don't have the option to exclude them from that backup.

  • Obfuscated Toolkit: Is there a test routine to see if data is encrypted?

    Does anyone know of a procedure, function, or package that will check to see if data has been encrypted previously before attempting to decrypt it? I inherited a database with several encrypted columns. But some of the data (i.e. first 100 rows or so [and more intermixed]) is not encrypted. I'm looking for a way programatically to check to see if data is encrypted before decrypting it.

    DBMS_OBFUSCATION_TOOLKIT.DES3Encrypt procedure raises an exception, don't remember exactly whihc one, that is raised when you try to encrypt data previously encryoted. You can try that approach and just ignore when data is already encrypted.
    HTH.
    Arup

  • I have Firefox 18.0.1 and when I click "Check to see if plugins are up to date", I get an uresponsive script warning.

    When I click the link "Check to see if plugins are up to date" at the top of the Add-ons Manager page, it opens a new page like normal. The new page displays everything but the plugins and their status. The page just sits waiting for the status results to populate. If I try to click anything at this point, the page freezes and I see a message at the top of the window that Firefox has become unresponsive. If don't click and wait about 60 seconds, I get a "Warning - Unresponsive Script" message. I also see the following information with this warning:
    Script: https//www.mozilla.org/js/plugincheck.js:14
    This first happened yesterday, after accidentally removing Java from my PC - I think it was Java 6. When I tried to access Java downloads to re-install, I got the same unresponsive script message. So, I had to access Java downloads with IE instead of Firefox, and I re-installed Java (version 11, update 11). Has Java caused my problem? Should I attempt to find Java 6 and install it?

    hello eric, does it help when you reset firefox (this will keep your saved bookmarks & passwords)?
    [[Reset Firefox – easily fix most problems]]

  • Link to "Check to see if your plugins are up to date" is broken

    If i go to Tools > Addons and click on the "Check to see if your plugins are up to date" link, it gives me an error
    "Plugin Finding Service Error
    We've encountered an error. Please try your request again later."
    The link is sending me to https://www.mozilla.org/en-US/plugincheck/
    If i manually navigate to http://www.mozilla.org/en-US/plugincheck/ it works fine.
    Therefore the link to the secure protocol has broken
    thanks. ..

    Was not working this morning, but is working now
    *https://www.mozilla.org/en-US/plugincheck/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How to check whether a date is null or not in java ?

    Plz do help me.

    I was trying like this
    Date sdate = null;
    if(sdate.equals(null))
    So i got null pointer Exception.. Now i found out to b checked like this if(sdate == null)
    tx.
    And my another question is there any way to get yesterday date from today's date which is given as input. I mean is there any short method ?

  • HT1212 If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If I never synced to itunes and I restore the device. Will I lose unstored data? How can I check to see the last time my phone was backed up if I forgot the passcode to my phone?

    If you can't remember your passcode, you'll need to restore your phone.  If you never synched to iTunes, all data on your phone will be erased.  No way around this.

  • When I go to "Tools" / "Plug-Ins" and click on "Check To see If Plugins Are Up To Date" it goes to Mozilla Check Your Plugin Page, but fails to show plugins.

    When I go to "Tools" / "Plug-Ins" and click on "Check To see If Plugins Are Up To Date" it goes to Mozilla Check Your Plugin Page, but fails to show plugins or check plugins. I am using OS X 10.10.2 / Firefox 35.0.1 / February-7-2015
    Need info and a fix, please... Thanks! Whitebuck
    https://www.mozilla.org/en-US/plugincheck/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_campaign=plugincheck-update

    "check to see if your plugins are up to date" still doesn't work for me in Firefox 36.0.1

  • Firefox home doesn't load my bookmarks ? I have tried to do everything that they suggest to fix the problem from disabling the add-ons to reseting my data. nothing works, and yes I did check to see if private browser is not on. I am running window xp and

    firefox home doesn't load my bookmarks ? I have tried to do everything that they suggest to fix the problem from disabling the add-ons to reseting my data. nothing works, and yes I did check to see if private browser is not on. I am running window xp and everything is up to date.
    == This happened ==
    Every time Firefox opened
    == from the first time I tried it.

    Are you talking the the Firefox Home iPhone App?
    If not, please explain what you mean a little clearer.
    This is the location of the '''Firefox Home iPhone App Support Forum''':
    https://support.mozilla.com/en-US/forum/6

  • 'Check to see if plug ins are up to date' not working

    The 'Check to see if your plug ins are up to date' link on the Add-ons Manager page is not working correctly. The link opens on Mozilla Student Reps page. I'm using Firefox 12.0

    The problem has been reported as Bug 752161. You can open the Plugin Check page manually by going to the link below.
    * [http://www.mozilla.org/en-US/plugincheck/ http://www.mozilla.org/en-US/plugincheck/]

  • How do i check to see if my data is backed up on the time casule

    How do I check to see if my Time Capsule external hard drive is backing up all my data?

    Click the TM icon in your menubar -- that will show the last successful backup.
    So will Time Machine Preferences.
    Browse your backups.  You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Questions.

  • Check to see if field exisits in Recordset

    ASP/VB/Access
    Can anyone help me out with a function that checks to see if
    a field exists in a record set. I need to check it before I try and
    output it on the page and cause an error. Similar to checking to
    see if a field is null. The record set is being generated from a
    crosstab query in Access.
    Heres what I got so far
    function FieldExists(rs, fldname)
    Dim X
    on error resume next
    X= rs(fldname)
    if err.number = 0 then
    FieldExists = True
    else
    err.clear
    FieldExists = False
    end if
    End Function
    While ((Repeat1__numRows <> 0) AND (NOT rs_dates.EOF))
    If FieldExists(rs_info,
    rs_dates.Fields.Item("thedate").Value) Then
    Response.Write(rs_info.Fields.Item(""&(rs_dates.Fields.Item("thedate").Value)&"").Value)
    End If
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_dates.MoveNext()
    Wend
    Thanks

    Depending on what exactly you are trying to do here you probably need to do one or more of the following:
    1) Use a fully qualified record set reference of queryName.column.row:
    I.E.
    #rs_quthorized.county_name[2]#
    2) Loop over the recordset to search all the rows.  <cfoutput query="..."> or <cfloop query="..."> constructs make this rather easy to do, but nothing is preventing you from using any looping mechinism you care to use.
    3)Use the valueList(queryName.column) function to turn all the date from one column in the record set into a list.  This combined with either a listFind() or listContains() function will allow you to quickly search for a single value.

  • Final user's can not see the data due to limited authorization.

    We have created a InfoSet with three info Objects, 0Account, 0Costcenter and 0COMP_CODE. 0Costcenter have an attribute retail location  0RT_LOCATIO.
    0RT_LOCATIO is an authorization relevant object. We as consultants can execute the infoset properly, but final user's with limited authorizations can not see the data because of authorization failier
    We hae several options to solve the issue, deleselect the auth. flag in the infoobject; delete the infoobject from the attributes of the cost center or create an authorization object and assign it to the final user's profile. But we don't want to go that way.
    My question is, is there any way to avoid including this attribute in the infoset definition? We are not using it in the query and we don't need it, so if we could delete it from the infoset (in the same way you add or delete infoobjects from an Infocube) without changing the cost center aster data, we will have our problem solved.
    Does anyone how to do this (if possible)?
    Thanks in advance!

    Just do two things to find the authorization check failed for that user.
    1. Execute SU53 output and find out the authoirzation check failed. If yes, please send that to BASIS Team.
    2. Next one, switch on the authorization trace in ST01 and ask that user to see that data. if the user is failed with authorization issue. switch off the trace in ST01 and find out the issue.
    Do this way, if it is not successful you can go for any other alternate way.
    Hope this would help you.

  • Apex 4.0 - Can see view data in SQL*Plus but no data in Object Browser

    Hi There,
    I have just started using Apex 4.o and migrated some apps. I have an issue with a report, but see the same issue with Object browser, which is easier to describe.
    I have a view:
    create or replace view V_PLJ_USERDEF_CODES (
             CODE_SET_ID,
             CODE_SET_CODE,
             CODE_SET_DESC,
             CODE_ID,
             CODE_SYS_CODE,
             CODE_VALUE,
             CODE_DESC,
             DISPLAY_SEQ,
             DISPLAY_FLAG,
             LANGUAGE_CODE) as
      select CS.CODE_SET_ID,
             CS.CODE_SET_CODE,
             CS.CODE_SET_DESC,
             C.CODE_ID,
             C.CODE_SYS_CODE,
             C.CODE_VALUE,
             C.CODE_DESC,
             C.DISPLAY_SEQ,
             C.DISPLAY_FLAG,
             C.LANGUAGE_CODE
        from PLJ_CODES C,
             PLJ_CODE_SETS CS
       where C.CODE_SET_ID         = CS.CODE_SET_ID
         and CS.CODE_SET_TYPE_CODE = SYS_CONTEXT('PLJUMPSTART','C_USERDEF_CODE_SET');This returns data in SQL*Plus, but no data in Object Browser OR report region based on this view.
    Workspace parses in the same schema as tested in SQL*Plus.
    If, in report, I swap out view, and use underlying table - no problem.
    Any ideas -
    thanks
    P

    Hi all,
    Thanks for getting back so promptly.
    It just seems weird to me, as tables are just fine, but not views.
    In the underlying schema:
    SQL> sho user
    USER is "ICSREPORTING"
    SQL> select count(*) from plj_codes;
      COUNT(*)
           107
    SQL> select count(*) from v_plj_userdef_codes;
      COUNT(*)
            29And in the APEX schema
    SQL> sho user
    USER is "APEX_040000"
    SQL> select count(*) from icsreporting.plj_codes;
    select count(*) from icsreporting.plj_codes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select count(*) from icsreporting.v_plj_userdef_codes;
    select count(*) from icsreporting.v_plj_userdef_codes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>However, in SQL browser, I can see the data in PLJ_CODES but in V_PLJ_USERDEF_CODES, just the message "This view has no data". Indeed, it is like this for all views.
    I even explicitly granted access to APEX_040000 but no good.
    In fact, I would like to know more about how Apex gets access to do DML against the underlying parsing schema(s).
    This is a little frustrating though. It worked just fine in lots of apps in version 2.1 to 3.2
    Am I missing something
    paul
    p.s I knew there would be a question about the context, but I had already checked that. :)
    Edited by: PJ on Nov 19, 2010 4:09 AM

  • Report exection problem for one user - not able to see the data.

    Hello Friends ,
    Need some help . I have got the one ticket from bussniess side about the report execution .
    Unfortunately , I am also not having authorisation of that report due to sensible data.
    Problem - User is executing the report but some how he is not ABLE TO see the data for one company code Hierachy .
    I executed the same report through RSSMQ via his user id , and I got the  below message.
    All value were selected . Hierachy Authorisation cannot be used.
    A displayed hierachy requier a hierachy authorisation .
    But when i checked his authorisation , I am able to see that he should have authorisation to all the hireachy .
    could you please let me know , how can I check more ?
    Regards,

    after accessing the report , u go to su53 tcode and check the authorization and u can see what is problem in authorization for the that user and u can send the details to secuity team to rectify the issue ,

Maybe you are looking for

  • Problems after upgrade: Leopard to Leopard no longer works

    My sister upgraded to Leopard on her iMac(c2d) to Leopard yesterday. Earlier in the day we were able to do video chats with a number of people(her machine Tiger to Fathers machine Leopard). However, since upgrading, we've experienced weird behavior f

  • Trying to connection Mac Mini to HD Projector 100 ft away....

    Is HDMI an option or will I need to go another route?  Setting up a new HD Projector in a church sanctuary and want to get the best picture available out of it. 

  • Restoring backed up data after Win7 recovery

    did a total recovery from the HP Support Assistant - first backed up files to external hd thru same  restarted computer as instructed, am ready to put back all my stuff from the external HD - HOW DO I DO THAT PROPERLY?  I look at the external and I'm

  • External Vendor capacity

    Here is some background on the last attempt of doing External vendor capacity evaluation in R/3 - 3.1. <i>I have been loading independent demand into MD61 and created various planning scenarios in MS31.  From there I ran the MRP on MS01.  We develope

  • How to reconfigure notification email and smtp addresses

    Hi all, I want to reconfigure notification email and smtp addresses on single instance db (10.2 and 11.1 versions). How this is done?