09-12-19 03:33 PM
Answered! Go to Answer.
22-12-20 05:52 AM
An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object reference not set to an instance of an object" means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.
if (mClass != null)
{
// Go ahead and use mClass
mClass.property = ...
}
else
{
// Attempting to use mClass here will result in NullReferenceException
}
------------------------------
evan chirger
------------------------------
10-12-19 03:30 AM
31-07-20 01:48 PM
22-12-20 05:52 AM
An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object reference not set to an instance of an object" means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.
if (mClass != null)
{
// Go ahead and use mClass
mClass.property = ...
}
else
{
// Attempting to use mClass here will result in NullReferenceException
}
------------------------------
evan chirger
------------------------------
05-04-22 09:27 AM
11-02-24 07:11 PM
Hi Piotr - I am currently seeing this issue now on our bots. We use HTTP request to retrieve credentials from CyberArk and then send those credentials to Login Agent. I have suddenly started seeing this 'object reference not set to an instance..' error. Can you elaborate a bit more on what caused this issue on your end and how it got resolved?
What do you mean when you said bot user had temp profile and when you say return bot user to normal profile.
Thanks so much!
19-02-24 08:46 AM
Hi Maneesh,
temp profile means that during each login to Windows using this same user bot is creating new profile - something like bot1 during first login, then bot01.temp01, next bot01.temp02 etc... each login new profile.
When I was able to login VDI using permanent profile issue disappeared.
Best regards
Piotr