Android Studio v1.2.0 start up error : java.lang.NullPointerException-ThrowExceptions

Exception or error:

After updating Android Studio to v1.2.0. At start up I get below log and unable to open Android Studio. I am using Windows 7-64bit and look like same error getting in Ubuntu also

This issue also reported in Android Issues, but still not solution

java.lang.RuntimeException: java.lang.NullPointerException
    at com.intellij.idea.MainImpl$1$1$
    at java.awt.event.InvocationEvent.dispatch(
    at java.awt.EventQueue.dispatchEventImpl(
    at java.awt.EventQueue.access$300(
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    at Method)
    at java.awt.EventQueue.dispatchEvent(
    at com.intellij.ide.IdeEventQueue.dispatchEvent(
    at java.awt.EventDispatchThread.pumpOneEventForFilters(
    at java.awt.EventDispatchThread.pumpEventsForFilter(
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(
    at java.awt.EventDispatchThread.pumpEvents(
    at java.awt.EventDispatchThread.pumpEvents(
Caused by: java.lang.NullPointerException
    at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(
    at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.showNow(
    at com.intellij.idea.IdeaApplication$IdeStarter.main(
    ... 16 more

Any help will be appreciated.

How to solve:

Issue #170849 gives the reasons for the above crash.

  1. This happens (at least) when no sdk is installed and no remote repos that contain platforms are available.
  2. Actually it happens whenever remote sites aren’t available and the first run wizard is run.

Found a temporary solution from Issue #170850:

Add the following code to C:\Program Files\Android\Android Studio\bin\


The issue has been fixed under Issue #170849.


Follow the below steps:

  1. Open the folder bin under the directory where you installed your Android Studio.

  2. Find the file “” and open it with Notepad++/UltraEdit/other_edit_tools.

  3. Add “” as the final line and save the file.

If you see any error while editing with Notepad ++ say in step 3. follow steps (a) and (b) like below
“Check if file is open in another program”

(a) open Notepad++ as administrator by doing a right click on Notepad++ shortcut and choose run as admin or ctrl+shift and click notepad++ shortcut

(b) Save the file after edit as listed in step 2.

  1. Restart Android Studio.


The above answers work perfectly. Here is my alternative simple trick.

Close the Android Studio if it’s already running and go to C:\Users\<your_name>\ and find-out .android directory and then delete it.

If you’re a Linux user go to File system i.e., /home/<your_name>.

By default some of the directories are hidden in your home directory. So, just hit Ctrl + H to see hidden directories.

Now find-out .android directory and delete it.

(I think the same should work in Mac also why because the file structure is same as Linux)

After that start your Android Studio, now the IDE automatically creates .android directory in users home directory. Now you can use your Android Studio without any problem.


I was facing the same problem. All you need to do is.

First close Android Studio if open.

open this folder in C:/UserName/

UserName will be different in your pc or you can see your name instead
of userName

there you see .android Folder

first copy it and keep it safe on another location because we are going to delete it.

now delete that .android folder.

and start your Android Studio it’ll work


1.Close Android Studio.

2.Go to folder where Android studio is Installed. This is usually under C:\Program files\Android.

3.Now inside bin folder open file

4.Now you will find al line something similar to this -> idea.max.intellisense.filesize=2500

add this line above it ->

5.Save it as Administrator.

6.Go to C:/Users/you name

7.Delete .android folder

  1. Now restart Android studio.

7.Now Set your Project location to C:/Users/Your Name/Android Studio Projects

  1. Woilaa… No Error


I had the same problem , like mentioned above adding the specefied code will cause the android studio to open but I still couldn’t create a project and it said that it couldn’t find the sdk or something similar , if you encounter the same one you have to locate the folder of the sdk and it will work like a charm. to do so go to configure,project defaults,projects structure and then locate the folder. if you download the sdk seperatly enter the location , otherwise the sdk folder of the android studio is C:\Users\USERNAME\AppData\Local\Android\sdk and you should probably be good to go


Thrown when an application attempts to use null in a case where an object is required. These include:

  1. Calling the instance method of a null object.
  2. Accessing or modifying the field of a null object.
  3. Taking the length of null as if it were an array.
  4. Accessing or modifying the slots of null as if it were an array.
  5. Throwing null as if it were a Throwable value.

To solve this you go to the directory where you installed your Android Studio in the bin folder and search “” and edit it by adding this line

using any of your text editors and save then restart Android Studio. Problem fixed.

For more check this out


Today, I have experienced the same problem but how i Solved by simply closing the instance of Android Studio and reopening! Must have been an instance conflict in Android processes .


you can simply go to bin and launch the android studio by double clicking studio64 present there.

If it does not work then change the setting in present in bin folder and modify the code as

Leave a Reply

Your email address will not be published. Required fields are marked *