"java.lang.NullPointerException " while trying to upload the code for BLE 400

Hi,

I am try to upload the code to the BLE 400 from waveshare with this library

I installed the cp210x drivers (windows 10 64 bit) and it is showing com port also

It is uploading sucessfully but when i try to upload the code to the board it is showing following error

java.lang.NullPointerException
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:314)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:89)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
	at processing.app.SketchController.upload(SketchController.java:713)
	at processing.app.SketchController.exportApplet(SketchController.java:686)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2149)
	at java.lang.Thread.run(Thread.java:745)

How to avoid this error ?

anilkunchalaece:
It is uploading sucessfully but when i try to upload the code to the board it is showing following error

I presume you mean that it compiles successfully ?

Can you upload any other program?

...R

Robin2:
I presume you mean that it compiles successfully ?

Yup .. My bad

Can you upload any other program?

No. I tried blinking example and bare minimum

I didn't have any arduino board with me to check whether to know either it is a problem with IDE

anilkunchalaece:
I didn't have any arduino board with me to check whether to know either it is a problem with IDE

How can you expect to upload anything if you have no Arduino board?

Have you tried closing and reopening the IDE?
Have you tried restarting your PC?
Have you tried deleting and then reinstalling the IDE?

...R

I tried These

Robin2:
Have you tried closing and reopening the IDE?
Have you tried deleting and then reinstalling the IDE?

How can you expect to upload anything if you have no Arduino board?

I didn't understand what are you trying to say.

I have BLE400 with me and i am trying with this library

anilkunchalaece:
I didn't understand what are you trying to say.

I have BLE400 with me and i am trying with this library

I think it is a case that I did not understand what you said in Reply #2 "I didn't have any arduino board with me to check whether to know either it is a problem with IDE"

That reads to me as if you were trying to upload code when you did not have an Arduino board.

...R

looks like board doesn't have programmer.

Robin2:
That reads to me as if you were trying to upload code when you did not have an Arduino board.

sry, english is not my primary language.

Thanks for the help @Robin2

What board does not have a programmer?

...R