I have 2 JTextField on my form and I declared these 2 variables globally      int order = Integer.parseInt(textOrder.getText());    int history = Integer.parseInt(textHistory.getText());   but I got these errors.      java.lang.NullPointerException at FrameController.&lt;init&gt;(FrameController.java:39)//this is line 39: int history=Integer.parseInt(textHistory.getText());  at FrameController$1.run(FrameController.java:56)//this is line 56:     FrameController window = new FrameController(); at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I downloaded and installed Ubuntu from the official site. However, I don't know if I installed the 32-bit or 64-bit version.  In Windows 7 I could right click My Computer and it listed which version it was.  Is there an easy way to check in Ubuntu? I have accounts in Stack Overflow, Programmers, Unix &amp; Linux and Area 51. I don't want to continue my Area 51 account, so I planned to delete my Area 51 account. I have performed the following steps to delete my account, but I couldn't!  Case 1     If your account has votes or posts do the following steps:         Edit the "About Me" section of your profile to say “please delete me”.   Contact the SE support to request deletion.      I edited my "About Me" section to "please delete me". When I contacted SE Support to delete my account, I couldn't make a request. I am getting the following error:  This operation is incomplete. please do it in main site.   For deleting Area 51 account, when I do it main site, in link for deletion column I gave the Area 51 link. It says that:  it is not valid link!   Case 2     If the account has not interacted with the site yet (votes or posts), click on the delete button on your user page next to the edit link.   I am not eligible for this case!  Then how to delete my Area 51 account? Any help is appreciated! RF Energy Harvesting Why can energy invested in RF radiation not be harvested fully? What are the main factors that affect this? Is there any significant research nowadays that fully describes this process? I stand on the conclusion: "Energy moves from one form to another.", but in this case why can it not be harvested in that quantity to use it for powering low-power devices or store it in significant quantities in some batteries for later use? Why is it not profitable nowadays and why is it not used today like energy from water, wind and other energy sources? How to configure Micromax 352g USB Modem? I want the driver software for my Micromax 352g USB modem for Ubuntu 12.04 LTS. On Ubuntu 10.04 sakis3g was working well, but it is not working on Ubuntu 12.04 LTS. Is it fair to buy a return ticket I know I will never use just because it's cheaper? I am planning a trip to Asia and then back to Rio. The thing is that I am traveling on flexible dates, so I am thinking of buying a one way ticket to Hong Kong, and I was planning to do the same when I want to come back.  But what I noticed is that, for example, a one way ticket from Melbourne to Rio costs no less than $2700 dollars for the month of May.  When I do a search for a round-trip from Melbourne to Rio and back, I can find flights for $2200.  I know I will not be using that return to Melbourne, but I'd still prefer to save those $500.   Can there be any issue with buying a round-trip with a return that I will never use? Is there an easy way to calculate the residue at one of the poles of a rational expression of the form $\frac{1}{1+z^n}$?  I end up having to add a bunch of polar-form complex numbers in the denominator which I have no idea how to do except to convert them to rectangular coordinates, which becomes really messy.  I feel like there ought to be simple pattern/rule for such a canonical expression. Today a student asked me $\int \ln (\sin x) \, dx.$ Calculate the integral $$\int \ln (\sin x) \, dx.$$ I'm trying to remember information about a series of three books I read in the early 1980's (first book could have been published in the 1970's). The book featured a character who was a scientific creation of some sort. It was (initially, I believe) an assassin, and had the ultimate getaway scheme; with effort, it could change its body, becoming about 10 years younger and switching sex. It changed 4 or 5 times in the first book, coming down from a senior citizen to someone in their teens or twenties; in the second and third books, it changed once per book (by the last book, it was a child or a young teenager).  The first book was title something like "The Morph..." where whatever the word was that started with "Morph" was this creature. No recollection of the author's name, or the titles of the other two books.  I think the cover of the first book was predominantly yellow, with black silhouettes representing the character at the four ages seen in the book, and a black title. And/or, the book might have been published by DAW (all their books at the time had yellow spines with black letters). A novel where a woman from "future" of 1999 speaks leet-speak How is the default user avatar generated? How can I format my active hard drive to NTFS? I'm trying to install Windows 7 with a 4GB flash drive, but my error that comes up is that my hard drive I'm trying to install on is in ext4. I need to format it to read NTFS. I can't seem to find any topics on how to format an active hard drive. I found a topic that explains how to move Ubuntu to a new drive, but it's a bit confusing to me. Argument list too long error for rm, cp, mv commands Initializing a member array in constructor initializer I know as a fact that I've gotten liquids larger than 3 ounces through the TSA scanner systems (such as sunscreen). I was scolded one time for bringing a shampoo container, but I was still ultimately allowed to bring that container through.  In any case, how often are liquids larger than 3 ounces ultimately confisticated, if I put them in a ziploc bag where they can be clearly seen? Predefined Coordinate Systems missing in QGIS 2 in QGis 1.8 were lots of predefined coordinate systems (national projections). Where have they all gone in qgis 2.0? I specifically need the Gauß-Krüger-Projections Zone 1 to 5.  Is there any plugin to load those coordinate systems? $$f(x,y) = \begin{cases} 2 &amp; 0&lt; x&lt; y&lt;1  \\     0 &amp;\text{otherwise} \end{cases} $$  I need to find   the density function of $y$ and conditional pdf of $X$ given $Y$.   My answer is coming out to be   $2y$ $\frac1y$ I am reading the book Darth Plagueis, and when an assassination attempt is made on him by use of a nuclear bomb, the book states that nuclear weapons are scarcely available.   I searched briefly but found nothing on this and wondered if an explanation is available. Why would nuclear weapons be rare in a universe with such advanced technology across the board? It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well.  On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$.  It seems that any positive integer has a square root that is either an integer or irrational number.        How do we prove that if $a \in  \mathbb N$, then $\sqrt a$ is an integer or an irrational number?      I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational.  This suggests we can extend the previous result to other radicals.        Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational? To reopen a closed question,  must agree that the question is suitable for the site and cast votes to reopen the question. But:  How does one actually vote to reopen? Is there a reputation level that you must have before you can see this function? Or do I just leave a comment along the lines of, &quot;I vote to reopen&quot;? What happens if someone with less than 3000 reputation leaves a comment that they wish to vote to reopen? How can one draw attention to their closed questions? Is it done via a posting new question? Or do you edit the closed question?   Related:  For more information, see &quot;&quot; in the . Transparent text cut out of background