fatal-error

Unable to start activity ComponentInfo{…}: java.lang.NullPointerException

谁说我不能喝 提交于 2019-12-13 04:24:33
问题 I got this problem Unable to start activity ComponentInfo{…}: java.lang.NullPointerException but i don't know where. I'm a beginner in androïd and i can't get out of this error.. Logcat: 05-29 02:37:57.280 2030-2030/com.example.myapplication2.app E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication2.app/com.example.myapplication2.app.Activity_detail_dvd}: java.lang.NullPointerException at android.app

setting delegate to self throwing error in Swift [duplicate]

不打扰是莪最后的温柔 提交于 2019-12-13 04:22:43
问题 This question already has answers here : What does “Fatal error: Unexpectedly found nil while unwrapping an Optional value” mean? (11 answers) Closed last year . I am currently working on code that disables a UIImageView while an AVAudioPlayer is playing. The AVAudioPlayer and the ImageView I want to disable are located in two different classes. I tried writing a delegate to have my two classes communicate but I keep on getting the error "Thread 1: Fatal error: Unexpectedly found nil while

Heroku cannot deploy Java 11 Spring Boot App

旧巷老猫 提交于 2019-12-13 03:35:37
问题 I am trying to deploy a Spring Boot app on Heroku ,using Java version 11.0.1. The error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project my-project: Fatal error compiling: invalid target release: 11 -> [Help 1] After a lot of research, I've found https://github.com/heroku/heroku-buildpack-java . I've created the system.properties file with multiple variations like : java.runtime.version=11 java.runtime.version=11.0.1 But still,

android.support.v4.app.FragmentManager#popBackStackImmediate() results in a NullPointerException

爱⌒轻易说出口 提交于 2019-12-13 02:13:01
问题 Sometimes executing android.support.v4.app.FragmentManager#popBackStackImmediate() results in the next exception: > Fatal Exception: java.lang.NullPointerException: Attempt to invoke > virtual method 'android.os.Handler > android.support.v4.app.FragmentHostCallback.getHandler()' on a null > object reference > at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1588) > at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager

Managing PHP Errors

梦想的初衷 提交于 2019-12-13 00:56:31
问题 I have been searching all over the net to try and find a way to catch all errors thrown by PHP (5.3) I have been reading through the documentation and it looks like set_error_handler is what I need but it doesn't get fatal/parse errors. I'm not sure if this is possible... Here is my source: https://github.com/tarnfeld/PHP-Error-Handler Feel free to fork/commit if you know better solutions to all of this. Thanks in advanced! Updated! Using the answers below I finished writing an error handler,

The Impossible Happened! What does this mean?

和自甴很熟 提交于 2019-12-12 21:12:00
问题 I have experienced an interesting runtime error. I assume it is some sort of memory leak. I wrote the following program: C Code: #include <gmp.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define PRECISION 4096 #define DECIMAL_POINT 1 #define NULL_TERMINATOR 1 void gatherSquares(const uint32_t limit, uint32_t ** const arr, uint32_t * const count); uint32_t inList(const uint32_t n, const uint32_t * const arr, const uint32_t count); void print_help(const

function_exists returns false but declaration throws error

寵の児 提交于 2019-12-12 18:29:23
问题 In PHP 5.3.6 I have a class with a method like this: public function chunkText() { if(!function_exists('unloadChunkText')) { function unloadChunkText() { . . . } } . . . } Where unloadChunkText is a helper method for chunkText. The problem is that whenever I call $obj->chunkText() I am given this error: Cannot redeclare diagnostic\question\unloadChunkText() (previously declared in file.php: 34 ) in file.php on line 34 Why isn't function_exists telling me that this function already exists? 回答1

Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown

独自空忆成欢 提交于 2019-12-12 17:48:57
问题 I get the following error: Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown in /home/u801961841/public_html/inc/lib/base_facebook.php on line 814 This is the code I used: if ($result === false) { $e = new FacebookApiException(array( 'error_code' => curl_errno($ch), 'error' => array( 'message' => curl_error($ch), 'type' => 'CurlException', ), )); curl_close($ch); throw $e; } curl_close($ch); return $result; } Does anyone know how to solve this problem? 回答1: The

WebView killing the whole activity — How can I debug this?

安稳与你 提交于 2019-12-12 17:07:30
问题 I have a strange problem that I don't know how to face. My application uses a WebView to load a HTML app. It is a long and complex app, that also involves JavaScriptInterfaces. Lately I am getting Core Dumps in the native webcore module that kill the whole activity. It happens sometimes, but frequently, let's say 1 of every 5 times. It always happens while WebView is loading the app, but on different places. It looks like a call to an exported Java function is involved, but not a specific one

Fatal Error when calling static method

若如初见. 提交于 2019-12-12 16:27:37
问题 So, here's my situation : I'm using CodeIgniter I've set up a helper, ('string_helper' under 'DK' folder) I've set up the dkString class in dk/string_helper.php static function strInArray($str,$arr) { foreach ($arr as $item) { if (self::inString($str,$item)) return true; } return false; } In my controller: I'm loading the helper ( $this->load->helper('dk/string'); ) Calling the method ( dkString::strInArray($str,$arr); ) Note : I've loaded class's static methods residing in a custom helper,