I'm developing a app, which works pretty well on the Android Studio Emulator, but when I built a APK and installed on my phone, it closes and crashes. So I decided to run it on my phone, debugging with ADB.  Looks like the problem is in line 67 of that Java code ()  for (int i = 0; i &lt; itemlist.size();i++){         Points item = itemlist.get(i);         googleMap.addMarker(new MarkerOptions()                 .position(new LatLng(Double.valueOf(item.getPosx()), Double.valueOf(item.getPosy())))                 .snippet(item.getDescription())                 .icon(BitmapDescriptorFactory.fromResource(MarkerChange(item.getType())))                 .title(item.getName()));      }   .. But I wasn't able to fix that, someone can give me some help with this issue?  Thanks... and sorry for any posting mistake: I am a newbie here in StackOverflow and English isn't my native language.
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?
Sugar as a defence against bacteria? mentions that sugar "at a certain level acts as a preservative". I've always been taught that microorganisms eat sugar and expel acids, that is why sugary food are damaging to teeth. How is it that sugar acts as a preservative, then?  Googling the question I've found   though I don't credit the sources as being especially reputable. What is the real reason that sugar can act as a preservative? The official deck construction rules for Commander (nee EDH) at  say that 'A card's colour identity is its colour plus the colour of any mana symbols in the card's rules text.'  How does this apply to dual-faced cards with faces of different colors, such as  out of Innistrad or  from Dark Ascension, where the color of the transformed face of the card is different from the color of the 'main face'?  The spirit of the rules would seem to suggest that these cards are the colors of both faces for deck construction purposes, but not only are these spells always cast as the front face, the front face is the only one 'seen' in other game zones: for instance, when the card's in the library, you could find Elbrus by searching your library for an artifact, but you couldn't find Withengar Unbound by searching your library for a creature card.  Could Elbrus then, for instance, be played in any Commander deck, or just one with a (partly) Black general? What is the best collation to use for MySQL with PHP? Is it possible to match encrypted documents using user-defined search terms? Suppose I am storing a number of encrypted documents in a database. I would like to make it possible to identify the subset of documents whose contents match user-specified search terms without a) maintaining a plaintext index or b) decrypting documents on the fly. Is there any way to accomplish this securely?  By the same token, I'm wondering if a collection of encrypted documents can be sorted according to an encrypted attribute (e.g., document title) without first decrypting all attribute values. How to Link/Append a data-block using the Python API? I'm searching a way to append a group in Python.  It should behave exactly like the Append function (ShiftF1) works, all objects should be local and editable. The idea is to append a character (with rig etc.) via Python and not Link it (to be able to modify it without making everything local one by one).  Thanks Which dialects of English consider "would" to be a polite form of "will"? My recent trip to India exposed me to many sentences using &quot;would&quot; as a polite substitute for &quot;will&quot;, as in  Please make sure to leave on time. The last bus would depart at 8PM. Thanks for checking out early. However, there would be no refund.  I am not familiar with such patterns in AmE or BE. Are they common in particular settings that I'm not aware of? How common are they in India? Note: the following query seems to return a bunch of other examples (among conditional uses of course) inurl:.co.in &quot;would&quot; How to resolve merge conflicts in Git repository? Sometimes, I write the name of an author in a sentence before the citation. For this reason, I'd like to suppress it in the citation. How can I do that?  Is the only solution to create a new macro, e.g. \citewoauth, similar to \cite but without author names, or am I missing something? [The MWE (non-working actually) below is with \parencite but the general idea is similar.]    \begin{filecontents}{\jobname.bib}   @article{doe_2011,     title = {A title},     author = {John Doe},     journal = {Journal},     number = {99},     pages = {483--488},     date = {2015},   } \end{filecontents}  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{csquotes} \usepackage[style=verbose-trad2,language=french,backend=biber]{biblatex}  \addbibresource{\jobname.bib}  \begin{document} Some text\footnote{According to John Doe, it is \enquote{a complete nonsense} \parencite[485]{doe_2011}}  \printbibliography \end{document} Suppose $\mu(X)&lt;\infty$. Show that if $\ f\in\ L^q(X,\mu)$ for some $1\le q&lt;\infty$ then $\ f\in\ L^r(X,\mu)$ for $1\le r&lt;q$   In the solution the assistant wrote this:  If $1\le r&lt;q$ then $q/r\ge 1$. Let p be the dual exponent to $q/r$ (i.e. $\frac{1}{q/r}+\frac{1}{p}=1)$  then by Hölder Inequality  $\int_{X}|f|^rd\mu\le\underbrace{(\int_{X}|f|^qd\mu)^{r/q}}_{??????}(\int_X1^pd\mu)^{1/p}&lt;\infty$  for me the middle part doesn't make sense (it is not the hölder inequality) can somebody show it ?  instead of this can't we say (only in this case) that   $\int_{X}|f|^rd\mu\le (\int_{X}|f|d\mu)^r$ then  $(\int_{X}|f|d\mu)^r\le ((\int_{X}|f|^qd\mu)^{1/q}(\int_X1^pd\mu)^{1/p})^r&lt;\infty$  ? Here are some examples.  "Until the Son of God appear" What I was taught: Subjunctive of indefinite future.  "It is required that the applicant be 18 years old and possess a valid driver's license." What I was taught: mandative subjunctive.  "Where be ye going," said the false knight on the road?" What I was taught: subjunctive of direct discourse.  "If I were you, which we both are thankful I am not, I wouldn't do that. What I was taught: The subjunctive mood is used for supposition contrary to fact.  "I dreamed I were a fireman in my Maidenform bra." What I was taught: The subjunctive mood can be used with words like dream.  "God bless you." I don't remember, so obviously I wasn't taught.  I can live with Pluto's not being a planet, but I must say it's irksome to find that so much of what I was told about English turns out to be nonsense. Coming from Eclipse and having been used to duplicate lines all the time, it's pretty strange finding out that Xcode has no such function. Or does it?  I know it's possible to change the system wide keybindings but that's not what I'm after. I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5? Is sudo required for installing VMware Tools? I'm trying to install VMware Tools in Ubuntu 16.04. Should I do this by using sudo? Why? Why does default auto.arima stop at (5,2,5)? The function auto.arima in the forecast package of R is a powerful tool to identify the best ARIMA(p,d,q) model for a given data series. In the   of the function, they report the following:  auto.arima(y, d=NA, max.p=5, max.q=5, max.order=5, max.d=2, start.p=2, start.q=2, ...)   According to the above function it seems that, by default, auto.arima tries to find the best model among all the combination having:   p equal or lower than 5 q equal or lower than 5 d equal or lower than 2 order equal or lower to 5, i.e. p + q + d  ≤ 5.   However, why does the default code stops at these conditions? Is there any particular reason why p, q and d should be equal or lower than 5, 5 and 2 and their sum lower than 5? Which balancing issues, if any, would arise from allowing PCs to spend actions on bonus action features? MVC DateTime binding with incorrect date format How can a network with only ReLU nodes output negative values? I'm trying to use an api with a feedforward neural network for time series forecasting.  For dense aggregate data it works fine, but for sparse data it sometimes forecasts negative values, even though my historical data has only positive values.   The source code is very dense, and I might be missing a line or two, but as far as I can tell, the input layers and the hidden layers are all ReLU nodes.   Assuming I am correct, how can a network with only ReLU layers lead to negative values, especially if none of the training data has negative values? Alternative to LibreOffice Base for Ubuntu I'm giving training to a large group of people remotely and will be covering a number of application shortcut keys.  I've seen 's on-screen display of keystrokes; is there a similar product for Windows?    The other features of MousePose (fancy mouse pointers, etc.) aren't really useful to me, just the OSD of key presses. Can't get Freeglut to work with Haskell on Windows