I am getting date from the calender and converting its format using       SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy");     Date date = null;     try {         date = sdf1.parse(datevalue);     } catch (ParseException e) {         e.printStackTrace();     }      if(date != null) {         Date d = new Date(date.getTime());         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");         return sdf.format(d);     }      return "";   But I am getting crash on some of devices and for some devices it is working fine. I don't know why it is happening on some devices only.   I am getting this in Fabric report:  Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference            at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1044)        at java.text.DateFormat.parse(DateFormat.java:577)        at com.app.appUtilities.Utilities.convertDateFormat(Utilities.java:34)   Please help me out.
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?
What is the music on S3E16 when Todoroki was fighting group of ninjas? For a command, if using - as an argument in place of a file name will mean STDIN or STDOUT.   But in this example, it creates a file with the name -:  echo hello &gt; -   How can I make - in this example mean STDOUT? Conversely, how can I make - mean a file named - in examples such as:  cat - What makes you lose the Field Upgrade Score? When playing in a squad, you can get "Field Upgrades". However, sometimes when I die, it tells me that I have lost the "Field Upgrade Score".   Where can I see this score and what are the events that make me lose it? What's the standard "roadmap" to learning quantum physics? I'm really interested in quantum physics and would like to learn more. However, I don't know where to start and in what order I should learn things. So, ideally I'm looking for some sort of roadmap of what to learn. What physics topics do I need to know to start learning about quantum mechanics? (In addition to the mathematical topics mentioned at )  My current knowledge is mostly popular science stuff, like tv shows on Discovery Science and National Geographic Channel. So I have a basic understanding of some basic principals. There's also a recent lecture from Brian Cox that I have watched which gave a bit more in-depth information. How to prevent unification when animating in photoshop? I am trying to create an animated gif where text drops down and smashes into the background and cracks it. Whenever I try and transform it though, the transformation is applied to all frames. How do I prevent this? I'm using Adobe Photoshop CS6 (64-bit) table of contents no word separation Is it possible to have in the toc no word separation but have a word separation in the chaptername:  For example:   Contents  1. max Mustermann   Chapter  Max Muster- mann Give a sequence such that root test works while ratio test fails Can an ideal in a commutative integral domain be its own square? If $I$ is a non-zero proper ideal of a commutative integral domain, is it possible for $I$ to be its own square? What is $48\div2(9+3)$? There is a huge debate on the internet on the value of $48\div2(9+3)$. I believe the answer $2$ as I believe it is part of the bracket operation in BEDMAS.  yields the same answer. I also believe that if $48\div2\times(9+3)$ was asked it would be $288$ which Mathway agrees with as well. However,  says it is $288$ either way. A friend of mine (who is better at math) told me that there is no such thing as 'implicit multiplication', only shorthand so that is in fact done after the division (going left to right, not necessarily because division occurs before multiplication. But he didn't explicitly give a reason) What is the answer and why? Is AES in CBC mode secure if a known and/or fixed IV is used? I have a need to encrypt credentials for a third-party app used by a secured internal app. Over on ITSec.SE, I was helpfully shown a scheme to encrypt the third-party credentials based on a hash of the credentials for the internal app.   I picked AES as the encryption algorithm, but the problem is that the password-based scheme doesn't produce a "secret" IV. So, the IV must at least be known to an attacker (stored alongside the encrypted data). A hash value used for password verification could work, or I could just generate a pseudorandom byte array and drop it in the DB as a new column. I was further considering, for simplicity, to use a constant IV.   What adverse effect will either of these choices have on the security of the encryption? Does AES depend, as many block ciphers do, on an unpredictable IV? Does it matter if the IV is stored as unencrypted plaintext? Show that every uncountable set of real numbers has a point of accumulation. Different voltage sources in parallel I realize connecting two different voltage sources in parallel is a contradiction (in an ideal circuit). But if I were to connect this in practice and measure the voltage across points A and B, what value of voltage would it show? And how much current would be sunk by the 5V battery? (Non ideal conditions) One word/phrase to describe the reaction when you eat a very spicy-hot food I've read the discussion here about .  I've also read this one: .  But I did not find any word or phrase that describes the reaction someone has when eating a too spicy-hot food. You know, they tend to sweat, catch their breath, and even sometimes shed tears; due to the spiciness of the food.  So my questions:        What do you say to describe the reaction someone has when being excitedly "suffered" by a very spicy-hot food? In Indonesian, we would call it kepedasan.   What do you say when you get that thing [the answer to question 1] with you, other than the list I enclose below:                Oh, spicy!     My God, it's spicy-hot!                      Is that it? How are the degrees of freedom in the emmeans package calculated? - R I'm looking for an ASCII art generator (text is preferred, but images will do too) in the  style, but with text instead of trains. Any suggestion? Does anybody know how to add the shapefile name to a field in the file's attribute table?  I've found a description:     'You have to use inline variable in CalculateField like %Name% in   expresssion so that whatever the name of the file is, the string will   be inserted based on Name of the dbase file !'   I've tried to CalculateField tool with %Name%, but I got message:  Executing: CalculateField "2011-11-6 15_41_point" DBFName %Name% PYTHON # Start Time: Thu Dec 08 23:34:23 2011 WARNING 000405: No records within table Succeeded at Thu Dec 08 23:34:24 2011 (Elapsed Time: 1.00 seconds)   Where is my mistake? Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal. The Problem  Accessing my site over https (the only protocol allowed) I get the content, but none of the CSS, images etc.  Drupal is creating pages in response to https requests that include http links to these resources, but it should be using https.  What I've done  I have copied a site to a dev server. The site loads and basically works fine - I can log in etc. It's just that all the links drupal generates are http. The site I've copied it from also runs over https. The site does not exist on http (it would just get a Forbidden error). I've drush cc all.  So Apache's working - I can access the site. .htaccess is working (clean urls work, for example).  I'm using SNI to access the site because the server has other vhosts too, but I'm only accessing the site using the latest Firefox (and as it's a dev site and I'm the only dev, nobody else will use it).  I've done this dozens of times and am quite stumped! Why does Drupal not notice that the request came over https?  The fix  Turns out that .htaccess has this to say:   /* Base URL (optional).                                                          If Drupal is generating incorrect URLs on your site, which could             be in HTML headers (links to CSS and JS files) or visible links on pages     (such as in menus), uncomment the Base URL statement below (remove the       leading hash sign) and fill in the absolute URL to your Drupal installation.    Sure enough, putting $base_url = 'https://example.com'; fixed it.  But why is this necessary? I got a problem while making a model of a product. I have tried a lot even seen lots of tutorial but did not get the thing that i want. I am using Blender 9.92 and I am just a beginner I got my hands on Blender 7-8 days ago. I've just basic knowledge about I am trying to model a product &quot;Mattress Topper&quot;   This is the exact look of the product, Help me how i can model this product and render realistic images. I would like some help with this exercise.  Suppose that $f_1,\ f_2 \in V^*$ and that $\text{Ker} f_1 = \text{Ker} f_2$. Show that $f_1 = k f_2$ for some scalar $k$.  I expect your suggestions.  Thanks!