xml:      &lt;RelativeLayout         xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:app="http://schemas.android.com/apk/res-auto"         xmlns:tools="http://schemas.android.com/tools"         android:layout_width="match_parent"         android:layout_height="match_parent"&gt;         &lt;fragment                 android:id="@+id/the_fragment"                 android:name="com.example.MyFragment"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_alignParentBottom="true"                 tools:layout="@layout/fragment_my"/&gt;        &lt;Button                  android:id = "@+id/button"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="Show/Hide"/&gt;      &lt;/RelativeLayout&gt;   Code:      @Override                 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {                      super.onViewCreated(view, savedInstanceState);                      mMyFragment = (MyFragment) getChildFragmentManager()                                         .findFragmentById(R.id.the_fragment);                         ((Button)view.findViewById(R.id.button)).setOnClickListener(view-&gt;{         if (...){         //hide         getChildFragmentManager().beginTransaction() .setCustomAnimations(R.animator.slide_in_from_bottom, R.animator.slide_out_to_bottom)                                         .hide(mMyFragment)                                         .commit();          }else{         //show         getChildFragmentManager().beginTransaction() .setCustomAnimations(R.animator.slide_in_from_bottom, R.animator.slide_out_to_bottom)//in this line the app crash                                         .show(mMyFragment)                                         .commit();         }         });                                  }   The error occurs:  Process: by.gramophone.develop, PID: 21508     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.startViewTransition(android.view.View)' on a null object reference         at android.support.v4.app.FragmentManagerImpl.completeShowHideFragment(FragmentManager.java:1700)         at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1797)         at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:792)         at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2596)         at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2383)         at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2338)         at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2245)         at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:703)         at android.os.Handler.handleCallback(Handler.java:739)         at android.os.Handler.dispatchMessage(Handler.java:95)         at android.os.Looper.loop(Looper.java:148)         at android.app.ActivityThread.main(ActivityThread.java:5417)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   UPDATE: But if I remove .setCustomAnimations(R.animator.slide_in_from_bottom, R.animator.slide_out_to_bottom) the error doesn't occurs
129
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?
109542
I am in the video sequence editor, cut out fragments, combined the remaining into one whole new clip and do not know how to procede from here on in order to obtain a video file (h264, mpeg4).   I tried to click the animation button and all I got was a some pictures I already had cut out.
29281
In my page.tpl.php I'm doing this to display one of my view:  print views_embed_view('teaserview', 'default');   That gives me the following html output:  &lt;span thmr="thmr_10"&gt; &lt;div class="view view-teaserview view-id-teaserview view-display-id-default view-dom-id-e051ba535ce9aac6cd9a0d564b3dbb29 contextual-links-region"&gt;     &lt;div class="contextual-links-wrapper"&gt;         &lt;span thmr="thmr_16"&gt;         &lt;ul class="contextual-links"&gt;             &lt;li class="views-ui-edit first last"&gt;&lt;span thmr="thmr_17"&gt;&lt;a href="/kbi/admin/structure/views/view/teaserview/edit/default?destination=node/3"&gt;Edit view&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;         &lt;/ul&gt;         &lt;/span&gt;     &lt;/div&gt;     &lt;div class="view-content"&gt;         &lt;span thmr="thmr_15"&gt;         &lt;div class="views-row views-row-1 views-row-odd views-row-first views-row-last"&gt;             &lt;span thmr="thmr_14"&gt;             &lt;span thmr="thmr_11"&gt;&lt;span thmr="thmr_12"&gt;&lt;span thmr="thmr_13"&gt;&lt;img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;         &lt;/div&gt;         &lt;/span&gt;     &lt;/div&gt; &lt;/div&gt; &lt;/span&gt;   But the only thing that I really need is  &lt;img src="http://127.0.0.1/kbi/sites/default/files/teaser_2.jpg" width="1029" height="308" alt="" /&gt;   Is there a possibility to modify the views_embed_view call so that I get only the needed data?   There would be the possibility to modify all the views .tpl.php files but I hope there's an easier way to do this.   I also read about the semantic views module but I didn't understand how to configure my view with it so that i get only the needed markup as output. it didn't seem to have any effect.
91423
I'm making this 2D platform based game. Basically what I want is when the player walks into spikes (which have a "deadly" tag") it displays the animation that has the parameter of animate with the value of 3 and after that the player gets destroyed. So my question is:   How do I build a timer or something so that the object only gets destroyed after the animation is played (with no looping)?   This is the code I'm using now:  void OnTriggerEnter2D(Collider2D target) {     if (target.gameObject.tag == "Deadly") {         Die();     } }  void Die() {     animator.SetInteger ("AnimState", 3);     Destroy (gameObject); }
36904
In the mobile theme on Android 2.3.5, comments that do not meet the minimum length will fail to post but no feedback message is displayed to the user.  The submit button changes to its active state, but nothing else happens.
119645
Component  &lt;aura:component implements="force:lightningQuickAction"&gt;     &lt;ui:inputNumber aura:id="num1"/&gt; +     &lt;ui:inputNumber aura:id="num2"/&gt;     &lt;br/&gt;     &lt;ui:button label="Add" press="{!c.showToast}"/&gt; &lt;/aura:component&gt;   Controller    ({         showToast : function(component, event, helper) {         var n1 = component.find("num1").get("v.value");         var n2 = component.find("num2").get("v.value");          // Display the total in a "toast" status message          var resultsToast = $A.get("e.force:showToast");         resultsToast.setParams({             "title": "Quick Add: " + n1 + " + " + n2,             "message": "The total is: " + (n1 + n2) + "."         });         resultsToast.fire();          // Close the action panel          var dismissActionPanel = $A.get("e.force:closeQuickAction");         dismissActionPanel.fire();         }     })   ERROR MESSAGE     This page has an error. You might just need to refresh it. Action   failed: c$TestCheck1$controller$showToast [Cannot read property   'setParams' of undefined] Failing descriptor:   {c$TestCheck1$controller$showToast}
33360
OK, I've been staring at this for an hour.  I know there's an error in this frame, as the document compiles fine if I put \end{document} in the frame before this.  But this frame gives an error   File ended while scanning use of \next   Where is it?????  \begin{frame}[fragile] \frametitle{PROC TEMPLATE for a fancy graph (part 1)} \begin{alltt} proc template;  define statgraph scatdens2;  begingraph;   *BEGIN DEFINING THE GRAPH;    entrytitle "Scatter plot with density plots";     *CREATE A TITLE;    layout lattice/columns = 2 rows = 2     columnweights = (.8 .2) rowweights = (.8 .2)       columndatarange = union rowdatarange = union;    *LAYOUT LATTICE...SETS UP A GRID OF GRAPHS;    *COLUMNWEIGHTS AND ROWWEIGHTS SETS     THE RELATIVE SIZE OF THE INDIVIDUAL COLUMNS AND ROWS;  \end{alltt}  \end{frame}
7898
The StackExchange app crashes for me on every start when I click a link in the browser. It seems (based on the StackTrace) that the url parser causes a null pointer exception. I'm using 0.1.90.
20427
I know this question has been asked earlier. but did not see proper responses so asking again.  &lt;apex:pageBlockSection title="Preview Pane" columns="1"&gt;     &lt;apex:inputTextarea richtext="true" id="EmailBody" label="EmailBody"            cols="1" ondblclick="false" disabled="false"           value="{!emailTemplateSelected.htmlValue}"/&gt; &lt;/apex:pageBlockSection&gt;   I have tried to set the column value for the pageblock section. As well as for the inputtextarea. Still the column width dose not span the entire page.    &lt;apex:inputTextarea richtext="true" id="EmailBody" label="EmailBody" cols="1"     ondblclick="false" disabled="false" value="{!emailTemplateSelected.htmlValue}"     style="height:200px;width:200px;"/&gt;
112245
The following example works as expected:  \documentclass{article} \usepackage[table]{xcolor} \usepackage{makecell, multirow}     \renewcommand\theadfont{\normalsize\bfseries\color{white}}     \renewcommand{\theadgape}{} \usepackage{hhline}  \begin{document} \centering     \setlength\arrayrulewidth{2pt}     \arrayrulecolor{yellow}     \def\clinecolor{\hhline{&gt;{\arrayrulecolor{yellow}}--%                             &gt;{\arrayrulecolor{gray}}-}}     \setlength\extrarowheight{2pt} \begin{tabular}{ c | c | c }%     \rowcolor{gray} \multicolumn{2}{c|}{\thead{AAA -- BBBB}}    &amp;                                   \\     \clinecolor     \rowcolor{gray} \color{white} AAA   &amp;   \color{white} BBB   &amp;   \multirow{-2}{*}{\thead{CCC}}   \\     \hhline{&gt;{\arrayrulecolor{yellow}}-|-|-}     \rowcolor{gray!25} aaa                 &amp;   bbb                 &amp;   ccc                             \\     \hline     \rowcolor{gray!25} ddd             &amp;   eee                 &amp;   fff     \end{tabular} \end{document}     But the following not:  \documentclass[xcolor=table]{beamer} \usepackage{makecell, multirow}     \renewcommand\theadfont{\normalsize\bfseries\color{white}}     \renewcommand{\theadgape}{} \usepackage{hhline}  \begin{document} \begin{frame} \frametitle{test} \centering     \setlength\arrayrulewidth{2pt}     \arrayrulecolor{yellow}     \def\clinecolor{\hhline{&gt;{\arrayrulecolor{yellow}}--%                             &gt;{\arrayrulecolor{gray}}-}}     \setlength\extrarowheight{2pt} \begin{tabular}{ c | c | c }%     \rowcolor{gray} \multicolumn{2}{c|}{\thead{AAA -- BBBB}}    &amp;                                   \\     \clinecolor     \rowcolor{gray} \color{white} AAA   &amp;   \color{white} BBB   &amp;   \multirow{-2}{*}{\thead{CCC}}   \\     \hhline{&gt;{\arrayrulecolor{yellow}}-|-|-}     \rowcolor{gray!25} aaa                 &amp;   bbb                 &amp;   ccc                             \\     \hline     \rowcolor{gray!25} ddd             &amp;   eee                 &amp;   fff                             \\     \hhline{|-|-|-|}     \end{tabular} \end{frame} \end{document}     Why are the in beamer rules so strangely misplaced? Is there some workaround?
107908
I have began developing a button to automatically close the current case but I can't seem to get it working. I have tried a few different approaches but would someone be able to point me in the right direction.  As it stands the button does nothing, I feel like im on the right track, looking for someone who has done something similar with regards to updating fields from within a lightning component.   CMP  &lt;aura:component controller="AmexComm_SecureMsgController" implements="forceCommunity:availableForAllPageTypes,force:hasRecordId" access="global"&gt; &lt;aura:attribute name="record" type="Case"/&gt; &lt;aura:attribute name="caseStatus" type="String"/&gt; &lt;aura:attribute name="caseId" type="String" default="{!v.recordId}"/&gt;  &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}"/&gt;   &lt;button class="slds-button slds-button--neutral newsbutton" style="float:right"  onclick="{!c.closeCase}"&gt;Close Case&lt;/button&gt;   AmexComm_SecureMsgController   @AuraEnabled     public static Case getCase(Id caseId){         return([Select id, Atrium_Subject__c, Atrium_AmexSubject__c, Status, Atrium_Message_Status__c, Contact.Name, ContactId, CreatedDate, Message_Number__c, LastModifiedDate, Description__c,                 (SELECT id, Name From Attachments)                                 From Case Where id=:caseId]);     }     @AuraEnabled     public static Case closeCase(Case caseA){        update caseA;        return caseA;     }   Controller  { doInit : function(component, event, helper) {     component.set("v.isError", false)     component.set("v.showEditView", false);     component.set("v.errorMsg", "");      var action = component.get("c.getCase");     action.setParams({         caseId : component.get("v.caseId")     });      action.setCallback(this, function(a) {         if (a.getState() === "SUCCESS") {             component.set("v.record", a.getReturnValue());             helper.getStatusPickListValue(component);         }     });      $A.enqueueAction(action); },  closeCase : function (component, event, helper) {     var action = component.get("c.closeCase");     var Status = component.get("v.record.Status") //get value of field     //console.log("Status: " Status);     action.setParams({Status : Closed});      $A.enqueueAction(action); },   Helper  getStatusPickListValue : function(component) {          var action = component.get("c.getCaseStausPickList");         action.setCallback(this, function(response) {             var state = response.getState();             var hasImg = false;             if (component.isValid() &amp;&amp; state === "SUCCESS") {                  var statusPickList = response.getReturnValue();                 component.set("v.lstCaseStatus", statusPickList);                  console.log('status picklist ::', component.get("v.lstCaseStatus"));             }         });         $A.enqueueAction(action);      },
93604
First of all sorry because this question may be duplicated. I don't know why the question was uploaded with another user's name and I can't edit it (may be you can delete the previous question with the same title). The question is the following:  I am creating a beamer presentation where I have a lot of formulas. Between the packages used I have \usepackage{amsmath} and the theme for the presentation is \usetheme{Warsaw}.  As it can be seen in the attached picture, the size of the sub(super)script is bigger than the normal writting.     Anyone knows a set of basic packages in order to get the classical formulas, without these size changes?  The code is the following  \documentclass[]{beamer}  \setbeamercovered{transparent}   %--------------------------% % To add enumeration index %--------------------------% \addtobeamertemplate{navigation symbols}{}{%     \usebeamerfont{footline}%     \usebeamercolor[fg]{footline}%     \hspace{1em}%     \insertframenumber / \inserttotalframenumber  } \setbeamercolor{footline}{fg=black} \setbeamerfont{footline}{series=\bfseries}   %---------------------------------------------------------------------------------%  \usepackage{amsmath,amssymb}    % Theme for the presentation \usetheme{Warsaw} % Change the colour \usecolortheme{spruce}  \setbeamertemplate{footline}{}  % Delete the footline with the names    \begin{document}    \begin{frame} \frametitle{\textbf{Algorithm}: step \texttt{s}}   \scriptsize  \textbf{STEP \texttt{s}}  \vspace{0.25cm}  Let $B^{(s-1)}$ be the variable  for the $\mathit{(s-1)}$-th step, let's take the sets $I_+^{(s-1)}$ and $I_-^{(s-1)}$ of length $r_+^{(s-1)}$ and $r_-^{(s-1)}$ respectively,and define:\\  \vspace{0.25cm}  \begin{center}  $B^{(s+)}= \sqrt{\tfrac{(r_+^{(s-1)} + 1)*r_-^{(s-1)}}{r_+^{(s-1)} + r_-^{(s-1)} + 1}} $  \end{center}   \end{frame}  \end{document}
60845
I have used this jquery script on many of my sites with the same theme, settings, etc.  It's in a wordpress Genesis Child theme.  On my current local build, however, when I click on an a href that has the class "scroll", I am getting a console error that reads:    Line 19 of my app.js is this code that I have never had an issue with before:  $(".scroll").click(function () {         if (location.pathname.replace(/^\//, "") === this.pathname             .replace(/^\//, '') &amp;&amp; location.hostname === this.hostname         ) {             var target = $(this.hash);             target = target.length ? target : $("[name=" + this                 .hash.slice(1) + "]");             if (target.length) {                 $("html, body").animate({                     scrollTop: target.offset().top                 }, 1000);                 return false;             }         }     });   I am running jQuery 3.3.1. I have commented out all code in the app.js to identify where the issue may be coming from. This code is right at the top and I have added console.logs all over the document, which show in Console.  What am I doing wrong here?  Thank you!
66335
(clickable)  Mainad has a valid height and width, however it isn't shown like subad1/subad2. Which are in essence exactly the same! (just a different background image).  Firebug shows my div as greyed out for some weird reason. Replacing the contents of mainad with just some text doesn't solve the problem (problem isn't related to inner elements)..   What's going on?! :(
93817
There is an alignment issue in the  page, under the Tags section the Add buttons has extra height.  Screenshot for reference:        The alignment issue is in all the Stack Exchange main and meta sites. Not sure this is due to the impact of the recent .
78176
I let Android submit the crash report several times since the site was renamed to Software Engineering.  The side drawer icon is labeled "Unknown Site programmers".  Are other people seeing this problem?   App Version: 1.0.89 Device Manufacturer: LGE Device Model: Nexus 5X OS Version: 7.0 (3425233)
108638
This is very annoying. I need to delete an action I keep hitting x and clear animation data and all that, won't leave! I have quit and reopened, there is no 0 next to the name.