On Mac : Getting null pointer exception on Inputfilestream | Selenium Forum
M
Posted on 13/01/2016
HI,

I started coding using mac for automating by using selenium webdrifer, I am getting null point exception for the following line code:
FileInputStream fn = new FileInputStream(System.getProperty("/Users/Vanaja/Documents/workspace/sai/src/config/config.properties"));

Please see attached screen shot, i tried so many combinations to work but no luck. same file pats is working fine for file reader. Please see the attached screen shot.

Tried with the following none of them worked:

Macintosh HD/Users/Vanaja/Documents/workspace/sai/src/config/config.properties
/Macintosh HD/Users/Vanaja/Documents/workspace/sai/src/config/config.properties

Thanks,
Vanaja.

M
Replied on 13/01/2016

sorry attached wrong image file. Please find attached correct image.

Responsive image

M
Replied on 13/01/2016

[quote:3r3z6p7t]/Users/Vanaja/Documents/workspace/sai/src/config/config.properties[/quote:3r3z6p7t]

this path is not correct please give the correct path.[color=#FF0000:3r3z6p7t]C:/Users/Vanaja/Documents/workspace/sai/src/config/config.properties[/color:3r3z6p7t]